mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Added profiler support
Fixed memory leak and CTD with editor summary info Added extra VS2K5 property pages for debug support git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1528 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+10
-3
@@ -73,6 +73,7 @@
|
||||
#include "Music Control.h"
|
||||
#include "Soldier Profile.h"
|
||||
#include "GameSettings.h"
|
||||
#include "Summary Info.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -305,6 +306,9 @@ BOOLEAN EditModeInit( void )
|
||||
fFirstTimeInEditModeInit = FALSE;
|
||||
}
|
||||
|
||||
// Clear the summary info array
|
||||
ClearSummaryInfo();
|
||||
|
||||
//Initialize editor specific stuff for each Taskbar.
|
||||
EntryInitEditorTerrainInfo();
|
||||
EntryInitEditorItemsInfo();
|
||||
@@ -557,6 +561,9 @@ BOOLEAN EditModeShutdown( void )
|
||||
|
||||
HideExitGrids();
|
||||
|
||||
// Clear the summary info array
|
||||
ClearSummaryInfo();
|
||||
|
||||
UnPauseGame();
|
||||
|
||||
return TRUE;
|
||||
@@ -581,7 +588,7 @@ void SetBackgroundTexture( )
|
||||
usIndex = (UINT16)(rand( ) % 10 );
|
||||
|
||||
// Adjust for type
|
||||
usIndex += gTileTypeStartIndex[ gCurrentBackground ];
|
||||
usIndex = usIndex + gTileTypeStartIndex[ gCurrentBackground ];
|
||||
|
||||
// Set land index
|
||||
if( TypeRangeExistsInLandLayer( cnt, FIRSTFLOOR, LASTFLOOR, &Dummy ) )
|
||||
@@ -1557,7 +1564,7 @@ void HandleKeyboardShortcuts( )
|
||||
RemoveAllRoofsOfTypeRange( i, FIRSTTEXTURE, LASTITEM );
|
||||
RemoveAllOnRoofsOfTypeRange( i, FIRSTTEXTURE, LASTITEM );
|
||||
RemoveAllShadowsOfTypeRange( i, FIRSTROOF, LASTSLANTROOF );
|
||||
usRoofIndex = 9 + ( rand() % 3 );
|
||||
usRoofIndex = (UINT16) (9 + ( rand() % 3 ));
|
||||
GetTileIndexFromTypeSubIndex( usRoofType, usRoofIndex, &usTileIndex );
|
||||
AddRoofToHead( i, usTileIndex );
|
||||
}
|
||||
@@ -3141,7 +3148,7 @@ void EnsureStatusOfEditorButtons()
|
||||
|
||||
void HandleMouseClicksInGameScreen()
|
||||
{
|
||||
EXITGRID dummy={0,0,0,0};
|
||||
//EXITGRID dummy={0,0,0,0};
|
||||
INT16 sX, sY;
|
||||
BOOLEAN fPrevState;
|
||||
if( !GetMouseXY( &sGridX, &sGridY ) )
|
||||
|
||||
Reference in New Issue
Block a user