Optimization
This commit is contained in:
parent
3c448f173f
commit
56b01bc2ae
@ -101,7 +101,7 @@ namespace Components
|
||||
|
||||
for (int i =0;;)
|
||||
{
|
||||
char* mapname = reinterpret_cast<char*>(0x7471D0) + 40 * i;
|
||||
char* mapname = Game::mapnames[i];
|
||||
if (!*mapname)
|
||||
{
|
||||
i = 0;
|
||||
|
@ -233,6 +233,8 @@ namespace Game
|
||||
IDirect3D9** d3d9 = (IDirect3D9**)0x66DEF84;
|
||||
IDirect3DDevice9** dx_ptr = (IDirect3DDevice9**)0x66DEF88;
|
||||
|
||||
mapname_t* mapnames = (mapname_t*)0x7471D0;
|
||||
|
||||
XAssetHeader ReallocateAssetPool(XAssetType type, unsigned int newSize)
|
||||
{
|
||||
int elSize = DB_GetXAssetSizeHandlers[type]();
|
||||
|
@ -462,6 +462,8 @@ namespace Game
|
||||
extern IDirect3D9** d3d9;
|
||||
extern IDirect3DDevice9** dx_ptr;
|
||||
|
||||
extern mapname_t* mapnames;
|
||||
|
||||
XAssetHeader ReallocateAssetPool(XAssetType type, unsigned int newSize);
|
||||
void Menu_FreeItemMemory(Game::itemDef_t* item);
|
||||
const char* TableLookup(StringTable* stringtable, int row, int column);
|
||||
|
@ -2421,6 +2421,8 @@ namespace Game
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
typedef char mapname_t[40];
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user