mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
New feature: quest & intel map overlay
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=23742&goto=353499&#msg_353499 Requires GameDir >= r2424 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8560 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -666,7 +666,23 @@ BOOLEAN DeleteStrategicEvent( UINT8 ubCallbackID, UINT32 uiParam )
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
std::vector< std::pair<UINT32, UINT32> > GetAllStrategicEventsOfType( UINT8 ubCallbackID )
|
||||
{
|
||||
std::vector< std::pair<UINT32, UINT32> > vec;
|
||||
|
||||
STRATEGICEVENT* curr = gpEventList;
|
||||
while ( curr )
|
||||
{
|
||||
if ( curr->ubCallbackID == ubCallbackID )
|
||||
{
|
||||
vec.push_back( std::pair<UINT32, UINT32>( curr->uiTimeStamp, curr->uiParam ) );
|
||||
}
|
||||
|
||||
curr = curr->next;
|
||||
}
|
||||
|
||||
return vec;
|
||||
}
|
||||
|
||||
//part of the game.sav files (not map files)
|
||||
BOOLEAN SaveStrategicEventsToSavedGame( HWFILE hFile )
|
||||
|
||||
Reference in New Issue
Block a user