Fixed vs2010 compilation errors.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8914 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2020-11-01 05:01:11 +00:00
parent dd9c6b1f3e
commit 191db0b2ac
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -713,7 +713,7 @@ void HandleShowingOfEnemiesWithMilitiaOn( void )
INT32 GetMapColourForWeather(const INT16 sX, const INT16 sY) INT32 GetMapColourForWeather(const INT16 sX, const INT16 sY)
{ {
const INT32 weatherColors[]{ const INT32 weatherColors[] = {
MAP_SHADE_BLACK, MAP_SHADE_BLACK,
MAP_SHADE_LT_CYAN, MAP_SHADE_LT_CYAN,
MAP_SHADE_LT_BLUE, MAP_SHADE_LT_BLUE,
@@ -970,7 +970,7 @@ UINT32 DrawMap(void)
// shade map sectors (must be done before icons!) // shade map sectors (must be done before icons!)
if (!is_networked) //Don't shade anything if we're in multiplayer game if (!is_networked) //Don't shade anything if we're in multiplayer game
{ {
INT32 colorMap[ MAXIMUM_VALID_Y_COORDINATE ][ MAXIMUM_VALID_X_COORDINATE ]{}; INT32 colorMap[ MAXIMUM_VALID_Y_COORDINATE ][ MAXIMUM_VALID_X_COORDINATE ] = {};
switch (gusMapDisplayColourMode) switch (gusMapDisplayColourMode)
{ {
+1 -1
View File
@@ -2691,7 +2691,7 @@ BOOLEAN DrawCTHIndicator()
///////////////////////////////////////// /////////////////////////////////////////
// Load image STI for CTH indicator only once during gameplay. This prevents us from constantly loading and unloading the file from disk. // Load image STI for CTH indicator only once during gameplay. This prevents us from constantly loading and unloading the file from disk.
static UINT32 guiCTHImage{ 0 }; static UINT32 guiCTHImage = { 0 };
if (guiCTHImage == 0) if (guiCTHImage == 0)
{ {
VOBJECT_DESC VObjectDesc; VOBJECT_DESC VObjectDesc;