mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- 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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user