mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Merged Multi Player Project into main branch
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2144 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+14
-1
@@ -122,6 +122,8 @@
|
||||
#include "Rain.h"
|
||||
//end rain
|
||||
|
||||
#include "connect.h"
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
//
|
||||
// Local Defines
|
||||
@@ -1791,7 +1793,12 @@ BOOLEAN InitSaveDir()
|
||||
|
||||
// The locale-specific save dir location is of the form L"..\\SavedGames"
|
||||
// This has not changed; instead, we strip the ".." at the beginning
|
||||
sprintf( gSaveDir, "%s%S", dataDir.c_str(), pMessageStrings[ MSG_SAVEDIRECTORY ] + 2 );
|
||||
if(is_networked)
|
||||
{
|
||||
sprintf( gSaveDir, "%s%S", dataDir.c_str(), pMessageStrings[ MSG_MPSAVEDIRECTORY ] + 2 );
|
||||
}
|
||||
else
|
||||
sprintf( gSaveDir, "%s%S", dataDir.c_str(), pMessageStrings[ MSG_SAVEDIRECTORY ] + 2 );
|
||||
|
||||
// This was moved here from SaveGame
|
||||
//Check to see if the save directory exists
|
||||
@@ -1919,6 +1926,12 @@ BOOLEAN SaveGame( UINT8 ubSaveGameID, STR16 pGameDesc )
|
||||
SaveGameHeader.uiDay = GetWorldDay();
|
||||
SaveGameHeader.ubHour = (UINT8)GetWorldHour();
|
||||
SaveGameHeader.ubMin = (UINT8)guiMin;
|
||||
if(is_networked)
|
||||
{
|
||||
SaveGameHeader.uiDay = CLIENT_NUM;
|
||||
SaveGameHeader.ubHour = MAX_CLIENTS;
|
||||
SaveGameHeader.ubMin = MAX_MERCS;
|
||||
}
|
||||
|
||||
//copy over the initial game options
|
||||
memcpy( &SaveGameHeader.sInitialGameOptions, &gGameOptions, sizeof( GAME_OPTIONS ) );
|
||||
|
||||
Reference in New Issue
Block a user