mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +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:
+13
-2
@@ -11,6 +11,7 @@
|
||||
#include "overhead.h"
|
||||
#include "math.h"
|
||||
#include "Event Pump.h"
|
||||
#include "Soldier Control.h"
|
||||
#include "Overhead Types.h"
|
||||
#include "sys globals.h"
|
||||
#include "opplist.h"
|
||||
@@ -55,6 +56,8 @@
|
||||
#include "cheats.h"
|
||||
#endif
|
||||
|
||||
#include "connect.h"
|
||||
|
||||
extern void PauseAITemporarily( void );
|
||||
extern void UpdateEnemyUIBar( void );
|
||||
extern void DisplayHiddenTurnbased( SOLDIERTYPE * pActingSoldier );
|
||||
@@ -808,8 +811,16 @@ void StartNPCAI(SOLDIERTYPE *pSoldier)
|
||||
if(!gfAmIHost)
|
||||
return;
|
||||
#endif
|
||||
//pSoldier->flags.uiStatusFlags |= SOLDIER_UNDERAICONTROL;
|
||||
pSoldier->SetSoldierAsUnderAiControl( );
|
||||
////pSoldier->flags.uiStatusFlags |= SOLDIER_UNDERAICONTROL;
|
||||
//if (!(pSoldier->flags.uiStatusFlags & SOLDIER_PC))
|
||||
|
||||
//{
|
||||
//SetSoldierAsUnderAiControl( pSoldier );
|
||||
//}
|
||||
|
||||
if (!is_networked)
|
||||
pSoldier->SetSoldierAsUnderAiControl( );
|
||||
|
||||
|
||||
pSoldier->flags.fTurnInProgress = TRUE;
|
||||
|
||||
|
||||
+19
-1
@@ -17,7 +17,7 @@
|
||||
#include "Soldier macros.h"
|
||||
#include "Render Fun.h"
|
||||
#endif
|
||||
|
||||
#include "connect.h"
|
||||
//forward declarations of common classes to eliminate includes
|
||||
class OBJECTTYPE;
|
||||
class SOLDIERTYPE;
|
||||
@@ -878,6 +878,24 @@ void HaltMoveForSoldierOutOfPoints(SOLDIERTYPE *pSoldier)
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_networked)
|
||||
{
|
||||
EV_S_STOP_MERC SStopMerc;
|
||||
|
||||
SStopMerc.sGridNo = pSoldier->sGridNo;
|
||||
SStopMerc.ubDirection = pSoldier->ubDirection;
|
||||
SStopMerc.usSoldierID = pSoldier->ubID;
|
||||
SStopMerc.fset=TRUE;
|
||||
SStopMerc.sXPos=pSoldier->sX;
|
||||
SStopMerc.sYPos=pSoldier->sY;
|
||||
|
||||
//AddGameEvent( S_STOP_MERC, 0, &SStopMerc ); //hayden.
|
||||
if(pSoldier->ubID>=120)
|
||||
return;//hayden
|
||||
|
||||
if(is_client)
|
||||
send_stop(&SStopMerc);
|
||||
}
|
||||
// record that this merc can no longer animate and why...
|
||||
pSoldier->AdjustNoAPToFinishMove( TRUE );
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""..\Standard Gaming Platform";..\TileEngine;..\;..\Tactical;..\Utils;..\Editor;..\strategic;..\lua;..\Laptop;.\"
|
||||
AdditionalIncludeDirectories="..\Multiplayer;"..\Standard Gaming Platform";..\TileEngine;..\;..\Tactical;..\Utils;..\Editor;..\strategic;..\lua;..\Laptop;.\"
|
||||
PreprocessorDefinitions="PRECOMPILEDHEADERS;_DEBUG;WIN32;_WINDOWS;JA2;_VTUNE_PROFILING;XML_STATIC;CINTERFACE"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="2"
|
||||
@@ -393,7 +393,7 @@
|
||||
FavorSizeOrSpeed="1"
|
||||
OptimizeForProcessor="3"
|
||||
OptimizeForWindowsApplication="TRUE"
|
||||
AdditionalIncludeDirectories=""..\Standard Gaming Platform";..\TileEngine;..\;..\Tactical;..\Utils;..\Editor;..\strategic;..\Laptop;.\"
|
||||
AdditionalIncludeDirectories="..\Multiplayer;"..\Standard Gaming Platform";..\TileEngine;..\;..\Tactical;..\Utils;..\Editor;..\strategic;..\Laptop;.\"
|
||||
PreprocessorDefinitions="PRECOMPILEDHEADERS;NDEBUG;WIN32;_WINDOWS;JA2;XML_STATIC;CINTERFACE"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="0"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Version="8.00"
|
||||
Name="TacticalAI_2005Express"
|
||||
ProjectGUID="{27A49DAF-3F5A-4FF2-B943-9559F0B63032}"
|
||||
RootNamespace="TacticalAI_2005Express"
|
||||
@@ -41,6 +41,7 @@
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions="/D "_CRT_SECURE_NO_DEPRECATE""
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\Multiplayer"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
@@ -104,6 +105,7 @@
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions="/D "_CRT_SECURE_NO_DEPRECATE""
|
||||
AdditionalIncludeDirectories="..\Multiplayer"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;"
|
||||
RuntimeLibrary="0"
|
||||
RuntimeTypeInfo="false"
|
||||
|
||||
Reference in New Issue
Block a user