mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Fix: ALLOW_EXTRA_CIVILIANS did not affect CreateArmedCivilain
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8672 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -12887,6 +12887,8 @@ static int l_CreateArmedCivilain( lua_State *L )
|
|||||||
INT32 sGridNo = lua_tointeger( L, 3 );
|
INT32 sGridNo = lua_tointeger( L, 3 );
|
||||||
BOOLEAN fHostile = lua_tointeger( L, 4 );
|
BOOLEAN fHostile = lua_tointeger( L, 4 );
|
||||||
|
|
||||||
|
if ( gGameExternalOptions.bExtraCivilians )
|
||||||
|
{
|
||||||
SOLDIERTYPE* pSoldier = TacticalCreateArmedCivilian( usSoldierClass );
|
SOLDIERTYPE* pSoldier = TacticalCreateArmedCivilian( usSoldierClass );
|
||||||
|
|
||||||
if ( pSoldier )
|
if ( pSoldier )
|
||||||
@@ -12912,6 +12914,7 @@ static int l_CreateArmedCivilain( lua_State *L )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user