- Improved creature cutscene not playing after liberating 3 mine sectors (by Jazz)

o see also GameDir Rev: 1764

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6388 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2013-09-11 07:31:51 +00:00
parent d760d34d7e
commit 604000517e
+2 -4
View File
@@ -7497,10 +7497,8 @@ static int l_fEnemyControlled (lua_State *L)
{
UINT16 id = lua_tointeger(L,1);
// WANNE: Bugfix: We have to get the sector from StrategicMap array by using the SECTOR_INFO_TO_STRATEGIC_INDEX(sectorID) function!!!
//BOOLEAN Bool = StrategicMap[ id ].fEnemyControlled;
BOOLEAN Bool = StrategicMap[ SECTOR_INFO_TO_STRATEGIC_INDEX(id)].fEnemyControlled;
BOOLEAN Bool = StrategicMap[ id ].fEnemyControlled;
lua_pushboolean(L, Bool);
}