mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Reworked Briefing Room Feature (mission based JA2) (by Jazz)
- Briefing room feature must be enabled in ja2_options.ini (BRIEFING_ROOM) - Briefing room can be accessed from the laptop. Enter key "SN5631" and then click the exit button - see: http://www.bears-pit.com/board/ubbthreads.php/topics/327839/Reworked_Feature_Mission_based.html#Post327839 - see: https://ja2svn.dyndns.org/source/ja2/trunk/Documents/1.13%20Modding/Modding%20Examples/Briefing%20Room%20Modding.txt git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6573 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+8
-8
@@ -134,7 +134,7 @@
|
||||
|
||||
#include "LuaInitNPCs.h"
|
||||
#include "Vehicles.h"
|
||||
#include "Encyclopedia_Data.h"
|
||||
#include "BriefingRoom_Data.h"
|
||||
|
||||
#include <vfs/Core/vfs.h>
|
||||
//rain
|
||||
@@ -4134,13 +4134,13 @@ if( !SaveNewEmailDataToSaveGameFile( hFile ) )
|
||||
|
||||
}
|
||||
|
||||
if( !SaveEncyclopediaToSaveGameFile( hFile ) )
|
||||
if( !SaveBriefingRoomToSaveGameFile( hFile ) )
|
||||
{
|
||||
ScreenMsg( FONT_MCOLOR_WHITE, MSG_ERROR, L"ERROR writing Briefing Room & Encyclopedia");
|
||||
ScreenMsg( FONT_MCOLOR_WHITE, MSG_ERROR, L"ERROR writing Briefing Room");
|
||||
goto FAILED_TO_SAVE;
|
||||
|
||||
#ifdef JA2BETAVERSION
|
||||
SaveGameFilePosition( FileGetPos( hFile ), "Briefing Room & Encyclopedia" );
|
||||
SaveGameFilePosition( FileGetPos( hFile ), "Briefing Room" );
|
||||
#endif
|
||||
|
||||
}
|
||||
@@ -5746,19 +5746,19 @@ BOOLEAN LoadSavedGame( int ubSavedGameID )
|
||||
if( guiCurrentSaveGameVersion > ENCYCLOPEDIA_SAVEGAME_CHANGE)
|
||||
{
|
||||
uiRelEndPerc += 1;
|
||||
SetRelativeStartAndEndPercentage( 0, uiRelStartPerc, uiRelEndPerc, L"Load Briefing Room & Encyclopedia..." );
|
||||
SetRelativeStartAndEndPercentage( 0, uiRelStartPerc, uiRelEndPerc, L"Load Briefing Room..." );
|
||||
RenderProgressBar( 0, 100 );
|
||||
uiRelStartPerc = uiRelEndPerc;
|
||||
|
||||
if( !LoadEncyclopediaFromLoadGameFile( hFile ) )
|
||||
if( !LoadBriefingRoomFromLoadGameFile( hFile ) )
|
||||
{
|
||||
DebugMsg( TOPIC_JA2, DBG_LEVEL_3, String("LoadEncyclopediaFromLoadGameFile failed" ) );
|
||||
DebugMsg( TOPIC_JA2, DBG_LEVEL_3, String("LoadBriefingRoomFromLoadGameFile failed" ) );
|
||||
FileClose( hFile );
|
||||
return( FALSE );
|
||||
}
|
||||
|
||||
#ifdef JA2BETAVERSION
|
||||
LoadGameFilePosition( FileGetPos( hFile ), "Briefing Room & Load Encyclopedia" );
|
||||
LoadGameFilePosition( FileGetPos( hFile ), "Briefing Room" );
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user