From 6c9771eef08fa496968a48b92170ba758dacdf25 Mon Sep 17 00:00:00 2001 From: MaddMugsy Date: Fri, 9 Jun 2006 06:06:16 +0000 Subject: [PATCH] -minor lighting fix git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@212 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- GameVersion.cpp | 2 +- TileEngine/Tile Animation.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GameVersion.cpp b/GameVersion.cpp index cbf84660..c92ff0a6 100644 --- a/GameVersion.cpp +++ b/GameVersion.cpp @@ -23,7 +23,7 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" }; #else //RELEASE BUILD VERSION - INT16 zVersionLabel[256] = { L"Release v1.13.208" }; + INT16 zVersionLabel[256] = { L"Release v1.13.212" }; #endif diff --git a/TileEngine/Tile Animation.cpp b/TileEngine/Tile Animation.cpp index 96fff437..12e80697 100644 --- a/TileEngine/Tile Animation.cpp +++ b/TileEngine/Tile Animation.cpp @@ -380,7 +380,7 @@ void DeleteAniTile( ANITILE *pAniTile ) break; } - if ( pAniNode->uiFlags & ANITILE_LIGHT && pAniNode->lightSprite > 0 ) + if ( pAniNode->uiFlags & ANITILE_LIGHT && pAniNode->lightSprite >= 0 ) { LightSpriteDestroy(pAniNode->lightSprite); } @@ -613,7 +613,7 @@ void UpdateAniTiles( ) } else { - if ( pNode->uiFlags & ANITILE_LIGHT && pNode->lightSprite > 0 ) + if ( pNode->uiFlags & ANITILE_LIGHT && pNode->lightSprite >= 0 ) { LightSpriteDestroy(pAniNode->lightSprite); }