mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Merged revision(s) 6985 from branches/ja2_source_official_2014:
- Fix: battle reports no longer report that a team came from north if it was already in sector. - Fix: red lines at wrong locations git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6986 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -144,8 +144,6 @@ void RenderCampaignHistorySummary()
|
|||||||
DrawTextToScreen( sText, usPosX, usPosY, LAPTOP_SCREEN_LR_X-LAPTOP_SCREEN_UL_X, INS_FONT_SMALL, CAMPAIGN_HISTORY_FONT_COLOR_REGULAR, FONT_MCOLOR_BLACK, FALSE, 0 );
|
DrawTextToScreen( sText, usPosX, usPosY, LAPTOP_SCREEN_LR_X-LAPTOP_SCREEN_UL_X, INS_FONT_SMALL, CAMPAIGN_HISTORY_FONT_COLOR_REGULAR, FONT_MCOLOR_BLACK, FALSE, 0 );
|
||||||
|
|
||||||
usPosX = LAPTOP_SCREEN_UL_X;
|
usPosX = LAPTOP_SCREEN_UL_X;
|
||||||
// closing line that separates header from individual page
|
|
||||||
DisplaySmallRedLineWithShadow( usPosX, usPosY+15, LAPTOP_SCREEN_LR_X - LAPTOP_SCREEN_UL_X, usPosY+15);
|
|
||||||
|
|
||||||
usPosY += 20;
|
usPosY += 20;
|
||||||
|
|
||||||
@@ -515,8 +513,6 @@ void RenderCampaignHistory_MostImportant()
|
|||||||
DrawTextToScreen( sText, usPosX, usPosY, LAPTOP_SCREEN_LR_X-LAPTOP_SCREEN_UL_X, INS_FONT_SMALL, CAMPAIGN_HISTORY_FONT_COLOR_REGULAR, FONT_MCOLOR_BLACK, FALSE, 0 );
|
DrawTextToScreen( sText, usPosX, usPosY, LAPTOP_SCREEN_LR_X-LAPTOP_SCREEN_UL_X, INS_FONT_SMALL, CAMPAIGN_HISTORY_FONT_COLOR_REGULAR, FONT_MCOLOR_BLACK, FALSE, 0 );
|
||||||
|
|
||||||
usPosX = LAPTOP_SCREEN_UL_X;
|
usPosX = LAPTOP_SCREEN_UL_X;
|
||||||
// closing line that separates header from individual page
|
|
||||||
DisplaySmallRedLineWithShadow( usPosX, usPosY+15, LAPTOP_SCREEN_LR_X - LAPTOP_SCREEN_UL_X, usPosY+15);
|
|
||||||
|
|
||||||
usPosY += 20;
|
usPosY += 20;
|
||||||
|
|
||||||
|
|||||||
@@ -445,6 +445,10 @@ Incident_Stats::GetAttackerDirString( BOOLEAN fAttacker )
|
|||||||
swprintf(helperstr, L"%s", dir1 );
|
swprintf(helperstr, L"%s", dir1 );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 0:
|
||||||
|
swprintf(helperstr, szCampaignHistoryDetail[TEXT_CAMPAIGNHISTORY_DETAIL_UNKNOWNLOCATION] );
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1202,9 +1202,9 @@ BOOLEAN InternalAddSoldierToSector( UINT8 ubID, BOOLEAN fCalculateDirection, BOO
|
|||||||
if ( pSoldier->bSoldierFlagMask & SOLDIER_AIRDROP )
|
if ( pSoldier->bSoldierFlagMask & SOLDIER_AIRDROP )
|
||||||
gCurrentIncident.usIncidentFlags |= INCIDENT_AIRDROP;
|
gCurrentIncident.usIncidentFlags |= INCIDENT_AIRDROP;
|
||||||
|
|
||||||
// problem: soldiers already present in a sector have ubStrategicInsertionCode = 0, which is INSERTION_CODE_NORTH - but they don't actually coem from north, as they are already present
|
// problem: soldiers already present in a sector have ubStrategicInsertionCode = 0, which is INSERTION_CODE_NORTH - but they don't actually come from north, as they are already present
|
||||||
// we thus count them as coming from north if they either already have a gridno, or usStrategicInsertionData
|
// we thus count them as coming from north if they have valid usStrategicInsertionData
|
||||||
if ( pSoldier->ubStrategicInsertionCode == INSERTION_CODE_NORTH && pSoldier->usStrategicInsertionData || pSoldier->sGridNo != NOWHERE )
|
if ( pSoldier->ubStrategicInsertionCode == INSERTION_CODE_NORTH && pSoldier->usStrategicInsertionData )//|| pSoldier->sGridNo != NOWHERE )
|
||||||
{
|
{
|
||||||
if ( pSoldier->bSide == gbPlayerNum )
|
if ( pSoldier->bSide == gbPlayerNum )
|
||||||
gCurrentIncident.usIncidentFlags |= INCIDENT_ATTACKDIR_NORTH;
|
gCurrentIncident.usIncidentFlags |= INCIDENT_ATTACKDIR_NORTH;
|
||||||
|
|||||||
@@ -2576,6 +2576,7 @@ enum
|
|||||||
TEXT_CAMPAIGNHISTORY_DETAIL_SOUTH,
|
TEXT_CAMPAIGNHISTORY_DETAIL_SOUTH,
|
||||||
TEXT_CAMPAIGNHISTORY_DETAIL_WEST,
|
TEXT_CAMPAIGNHISTORY_DETAIL_WEST,
|
||||||
TEXT_CAMPAIGNHISTORY_DETAIL_AND, // " and " text
|
TEXT_CAMPAIGNHISTORY_DETAIL_AND, // " and " text
|
||||||
|
TEXT_CAMPAIGNHISTORY_DETAIL_UNKNOWNLOCATION,
|
||||||
|
|
||||||
TEXT_CAMPAIGNHISTORY_DETAIL_BUILDINGDAMAGE,
|
TEXT_CAMPAIGNHISTORY_DETAIL_BUILDINGDAMAGE,
|
||||||
TEXT_CAMPAIGNHISTORY_DETAIL_REINFORCE_BOTH,
|
TEXT_CAMPAIGNHISTORY_DETAIL_REINFORCE_BOTH,
|
||||||
|
|||||||
@@ -8331,6 +8331,7 @@ STR16 szCampaignHistoryDetail[]=
|
|||||||
L"南方",
|
L"南方",
|
||||||
L"西方",
|
L"西方",
|
||||||
L"和",
|
L"和",
|
||||||
|
L"an unknown location", // TODO.Translate
|
||||||
|
|
||||||
L"该分区的建筑受损。%d名市民被杀,%d名市民受伤。",
|
L"该分区的建筑受损。%d名市民被杀,%d名市民受伤。",
|
||||||
L"在战斗中,%s和%s呼叫了支援。",
|
L"在战斗中,%s和%s呼叫了支援。",
|
||||||
|
|||||||
@@ -8345,6 +8345,7 @@ STR16 szCampaignHistoryDetail[]=
|
|||||||
L"south",
|
L"south",
|
||||||
L"west",
|
L"west",
|
||||||
L"and",
|
L"and",
|
||||||
|
L"an unknown location", // TODO.Translate
|
||||||
|
|
||||||
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
||||||
L"During the attack, %s and %s called reinforcements.",
|
L"During the attack, %s and %s called reinforcements.",
|
||||||
|
|||||||
@@ -8329,6 +8329,7 @@ STR16 szCampaignHistoryDetail[]=
|
|||||||
L"south",
|
L"south",
|
||||||
L"west",
|
L"west",
|
||||||
L"and",
|
L"and",
|
||||||
|
L"an unknown location",
|
||||||
|
|
||||||
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
||||||
L"During the attack, %s and %s called reinforcements.",
|
L"During the attack, %s and %s called reinforcements.",
|
||||||
|
|||||||
@@ -8328,6 +8328,8 @@ STR16 szCampaignHistoryDetail[]=
|
|||||||
L"du sud",
|
L"du sud",
|
||||||
L"de l'ouest",
|
L"de l'ouest",
|
||||||
L"et",
|
L"et",
|
||||||
|
L"an unknown location", // TODO.Translate
|
||||||
|
|
||||||
L"Des bâtiments ont été endommagés. Il y a eu %d civils tués et %d blessés.",
|
L"Des bâtiments ont été endommagés. Il y a eu %d civils tués et %d blessés.",
|
||||||
L"Pendant l'attaque, %s et %s ont appelé des renforts.",
|
L"Pendant l'attaque, %s et %s ont appelé des renforts.",
|
||||||
L"Pendant l'attaque, %s a appelé des renforts.",
|
L"Pendant l'attaque, %s a appelé des renforts.",
|
||||||
|
|||||||
@@ -8155,6 +8155,7 @@ STR16 szCampaignHistoryDetail[]=
|
|||||||
L"south",
|
L"south",
|
||||||
L"west",
|
L"west",
|
||||||
L"and",
|
L"and",
|
||||||
|
L"an unknown location", // TODO.Translate
|
||||||
|
|
||||||
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
||||||
L"During the attack, %s and %s called reinforcements.",
|
L"During the attack, %s and %s called reinforcements.",
|
||||||
|
|||||||
@@ -8337,6 +8337,7 @@ STR16 szCampaignHistoryDetail[]=
|
|||||||
L"south",
|
L"south",
|
||||||
L"west",
|
L"west",
|
||||||
L"and",
|
L"and",
|
||||||
|
L"an unknown location", // TODO.Translate
|
||||||
|
|
||||||
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
||||||
L"During the attack, %s and %s called reinforcements.",
|
L"During the attack, %s and %s called reinforcements.",
|
||||||
|
|||||||
@@ -8355,6 +8355,7 @@ STR16 szCampaignHistoryDetail[]=
|
|||||||
L"south",
|
L"south",
|
||||||
L"west",
|
L"west",
|
||||||
L"and",
|
L"and",
|
||||||
|
L"an unknown location", // TODO.Translate
|
||||||
|
|
||||||
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
||||||
L"During the attack, %s and %s called reinforcements.",
|
L"During the attack, %s and %s called reinforcements.",
|
||||||
|
|||||||
@@ -8333,6 +8333,7 @@ STR16 szCampaignHistoryDetail[]=
|
|||||||
L"south",
|
L"south",
|
||||||
L"west",
|
L"west",
|
||||||
L"and",
|
L"and",
|
||||||
|
L"an unknown location", // TODO.Translate
|
||||||
|
|
||||||
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
||||||
L"During the attack, %s and %s called reinforcements.",
|
L"During the attack, %s and %s called reinforcements.",
|
||||||
|
|||||||
@@ -8345,6 +8345,7 @@ STR16 szCampaignHistoryDetail[]=
|
|||||||
L"south",
|
L"south",
|
||||||
L"west",
|
L"west",
|
||||||
L"and",
|
L"and",
|
||||||
|
L"an unknown location", // TODO.Translate
|
||||||
|
|
||||||
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
L"Buildings in the sector were damaged. %d civilians were killed and %d wounded.",
|
||||||
L"During the attack, %s and %s called reinforcements.",
|
L"During the attack, %s and %s called reinforcements.",
|
||||||
|
|||||||
Reference in New Issue
Block a user