Convert DisplayCharStats() to SoldierID

Moved two repeated print calls to their own functions
Removed compiler warning about exceeding stack size
This commit is contained in:
Asdow
2024-11-19 23:20:45 +02:00
parent be5c4b1601
commit 8b90c84738
3 changed files with 102 additions and 177 deletions
+1 -1
View File
@@ -319,7 +319,7 @@ INT8 GetDrunkLevel( SOLDIERTYPE *pSoldier )
}
// does a merc have a disability/personality, or is he under drugs that simulate this?
BOOLEAN DoesMercHaveDisability( SOLDIERTYPE *pSoldier, UINT8 aVal )
BOOLEAN DoesMercHaveDisability( const SOLDIERTYPE *pSoldier, UINT8 aVal )
{
if ( pSoldier->ubProfile != NO_PROFILE )
{