mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Fix: warnings about individual militia errors were wrongly printed out
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8473 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -838,7 +838,7 @@ void PickIndividualMilitia( UINT8 aSector, UINT8 ubType, UINT16 aNumber )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if this feature is on and we get to this point, then there aren't enough individual militia. This is odd, the player should be informed
|
// if this feature is on and we get to this point, then there aren't enough individual militia. This is odd, the player should be informed
|
||||||
if ( gGameExternalOptions.fIndividualMilitia )
|
if ( aNumber && gGameExternalOptions.fIndividualMilitia )
|
||||||
ScreenMsg( FONT_MCOLOR_RED, MSG_INTERFACE, L"Possible error: Not enough individual militia found in PickIndividualMilitia" );
|
ScreenMsg( FONT_MCOLOR_RED, MSG_INTERFACE, L"Possible error: Not enough individual militia found in PickIndividualMilitia" );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -877,6 +877,6 @@ void DropIndividualMilitia( UINT8 aSector, UINT8 ubType, UINT16 aNumber )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if this feature is on and we get to this point, then there aren't enough individual militia. This is odd, the player should be informed
|
// if this feature is on and we get to this point, then there aren't enough individual militia. This is odd, the player should be informed
|
||||||
if ( gGameExternalOptions.fIndividualMilitia )
|
if ( aNumber && gGameExternalOptions.fIndividualMilitia )
|
||||||
ScreenMsg( FONT_MCOLOR_RED, MSG_INTERFACE, L"Possible error: Not enough individual militia found in DropIndividualMilitia" );
|
ScreenMsg( FONT_MCOLOR_RED, MSG_INTERFACE, L"Possible error: Not enough individual militia found in DropIndividualMilitia" );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user