示例#1
0
文件: bm.cpp 项目: Foran/dxx-rebirth
//-----------------------------------------------------------------
// Initializes game properties data (including texture caching system) and sound data.
int gamedata_init()
{
	init_polygon_models();
	init_endlevel();
	if (! properties_init())				// This calls properties_read_cmp
#ifdef EDITOR
		// The pc_shareware argument is currently unused for Descent 2,
		// but *may* be useful for loading Descent 1 Shareware texture properties.
		if (!gamedata_read_tbl(0))
#endif
			Error("Cannot open ham file\n");

#ifdef EDITOR
	gamedata_read_tbl(0);	// doesn't matter if it doesn't find it, given the ham file exists
#endif

	piggy_read_sounds();

	return 0;
}
示例#2
0
文件: bm.cpp 项目: btb/dxx-rebirth
//-----------------------------------------------------------------
// Initializes game properties data (including texture caching system) and sound data.
int gamedata_init()
{
	int retval;
	
	init_polygon_models();
	init_endlevel();//adb: added, is also in bm_init_use_tbl (Chris: *Was* in bm_init_use_tbl)
	retval = properties_init();				// This calls properties_read_cmp if appropriate
	if (retval)
		gamedata_read_tbl(retval == PIGGY_PC_SHAREWARE);

	piggy_read_sounds(retval == PIGGY_PC_SHAREWARE);
	
	return 0;
}
示例#3
0
文件: bm.cpp 项目: btb/dxx-rebirth
//-----------------------------------------------------------------
// Initializes game properties data (including texture caching system) and sound data.
int gamedata_init()
{
	init_polygon_models();
	init_endlevel();

#if DXX_USE_EDITOR
	// The pc_shareware argument is currently unused for Descent 2,
	// but *may* be useful for loading Descent 1 Shareware texture properties.
	if (!gamedata_read_tbl(0))
#endif
		if (!properties_init())				// This calls properties_read_cmp
				Error("Cannot open ham file\n");

	piggy_read_sounds();

	return 0;
}