mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
wrapped the SOLDIERTYPE member variable name in GetName(). This will allow easier manipulation with pre/suffixes, ranks, titles etc.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5976 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1800,7 +1800,7 @@ void DisplayCommanderMorrisNote( SOLDIERTYPE *pSoldier )
|
||||
{
|
||||
gJa25SaveStruct.ubDisplayCommanderMorrisNote = DMN__DISPLAY_PART_1;
|
||||
|
||||
swprintf( zString, zNewTacticalMessages[ TCTL_MSG__END_GAME_POPUP_TXT_1 ], pSoldier->name );
|
||||
swprintf( zString, zNewTacticalMessages[ TCTL_MSG__END_GAME_POPUP_TXT_1 ], pSoldier->GetName() );
|
||||
}
|
||||
|
||||
//if it si the second part of the note to be displayed
|
||||
@@ -1808,7 +1808,7 @@ void DisplayCommanderMorrisNote( SOLDIERTYPE *pSoldier )
|
||||
{
|
||||
gJa25SaveStruct.ubDisplayCommanderMorrisNote = DMN__DISPLAY_PART_2;
|
||||
|
||||
swprintf( zString, zNewTacticalMessages[ TCTL_MSG__END_GAME_POPUP_TXT_2 ], pSoldier->name, pSoldier->name );
|
||||
swprintf( zString, zNewTacticalMessages[ TCTL_MSG__END_GAME_POPUP_TXT_2 ], pSoldier->GetName(), pSoldier->GetName() );
|
||||
}
|
||||
|
||||
//Display it
|
||||
|
||||
Reference in New Issue
Block a user