mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
New feature: transport groups (#172)
https://thepit.ja-galaxy-forum.com/index.php?t=msg&goto=365395
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
#include "LuaInitNPCs.h" // added by Flugente
|
||||
#include "Game Event Hook.h" // added by Flugente
|
||||
#include "Rebel Command.h"
|
||||
#include "Strategic Transport Groups.h"
|
||||
|
||||
#include "Quests.h"
|
||||
#include "connect.h"
|
||||
@@ -841,6 +842,8 @@ void fillMapColoursForVisitedSectors(INT32(&colorMap)[ MAXIMUM_VALID_Y_COORDINAT
|
||||
}
|
||||
}
|
||||
|
||||
FillMapColoursForTransportGroups(colorMap);
|
||||
|
||||
if (RebelCommand::ShowEnemyMovementTargets())
|
||||
{
|
||||
const auto targetColor = MAP_SHADE_LT_RED;
|
||||
@@ -8584,6 +8587,25 @@ void DetermineMapIntelData( INT32 asSectorZ )
|
||||
}
|
||||
}
|
||||
|
||||
// transport groups
|
||||
std::map<UINT8, TransportGroupSectorInfo> map = GetTransportGroupSectorInfo();
|
||||
for (const auto iter : map)
|
||||
{
|
||||
CHAR16 str[128];
|
||||
|
||||
switch (iter.second)
|
||||
{
|
||||
case TransportGroupSectorInfo::TransportGroupSectorInfo_LocatedGroup:
|
||||
swprintf( str, gpStrategicString[STR_PB_TRANSPORT_GROUP]);
|
||||
break;
|
||||
|
||||
case TransportGroupSectorInfo::TransportGroupSectorInfo_LocatedDestination:
|
||||
swprintf( str, gpStrategicString[STR_PB_TRANSPORT_GROUP_EN_ROUTE]);
|
||||
break;
|
||||
}
|
||||
AddIntelAndQuestMapDataForSector( SECTORX(iter.first), SECTORY(iter.first), MAP_SHADE_LT_YELLOW, -1, str, L"" );
|
||||
}
|
||||
|
||||
// uncovered terrorists we know of
|
||||
for ( int cnt = 0; cnt < 6; ++cnt )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user