mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Fortification feature fixes (by Flugente)
- fixed a bug that prohibited building a structure in turnbased mode - fixed a bug that caused a wrong AP cost for fortification actions - fixed itemflag - fixed cursor animations for fortifications git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5343 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5997,12 +5997,12 @@ BOOLEAN BuildFortification( UINT32 flag )
|
||||
if ( gusSelectedSoldier == NOBODY )
|
||||
return FALSE;
|
||||
|
||||
if( (gTacticalStatus.uiFlags & INCOMBAT) && (gTacticalStatus.uiFlags & TURNBASED) )
|
||||
// comment this in to forbid building while enemies are around
|
||||
/*if( (gTacticalStatus.uiFlags & INCOMBAT) && (gTacticalStatus.uiFlags & TURNBASED) )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* // comment this in to forbid building while enemies are around
|
||||
|
||||
if( gWorldSectorX != -1 && gWorldSectorY != -1 && gWorldSectorX != 0 && gWorldSectorY != 0 &&
|
||||
NumEnemiesInAnySector( gWorldSectorX, gWorldSectorY, gbWorldSectorZ ) > 0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user