fix line endings... again.
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
# - Find bncsutil
|
||||
# Find bncsutil headers and libraries.
|
||||
#
|
||||
# bncsutil_INCLUDE_DIR - where to find bncsutil.h, etc.
|
||||
# bncsutil_LIBRARY - List of libraries when using bncsutil.
|
||||
# bncsutil_FOUND - True if bncsutil found.
|
||||
|
||||
# Look for the header file.
|
||||
FIND_PATH( bncsutil_INCLUDE_DIR NAMES bncsutil.h
|
||||
PATHS /usr/include/bncsutil /usr/local/include/bncsutil)
|
||||
MARK_AS_ADVANCED(bncsutil_INCLUDE_DIR)
|
||||
|
||||
# Look for the library.
|
||||
FIND_LIBRARY( bncsutil_LIBRARY NAMES bncsutil
|
||||
PATHS /usr/lib /usr/lib64 )
|
||||
MARK_AS_ADVANCED(bncsutil_LIBRARY)
|
||||
|
||||
# Copy the results to the output variables.
|
||||
IF(bncsutil_INCLUDE_DIR AND bncsutil_LIBRARY)
|
||||
SET(bncsutil_FOUND 1)
|
||||
ELSE(bncsutil_INCLUDE_DIR AND bncsutil_LIBRARY)
|
||||
SET(bncsutil_FOUND 0)
|
||||
# - Find bncsutil
|
||||
# Find bncsutil headers and libraries.
|
||||
#
|
||||
# bncsutil_INCLUDE_DIR - where to find bncsutil.h, etc.
|
||||
# bncsutil_LIBRARY - List of libraries when using bncsutil.
|
||||
# bncsutil_FOUND - True if bncsutil found.
|
||||
|
||||
# Look for the header file.
|
||||
FIND_PATH( bncsutil_INCLUDE_DIR NAMES bncsutil.h
|
||||
PATHS /usr/include/bncsutil /usr/local/include/bncsutil)
|
||||
MARK_AS_ADVANCED(bncsutil_INCLUDE_DIR)
|
||||
|
||||
# Look for the library.
|
||||
FIND_LIBRARY( bncsutil_LIBRARY NAMES bncsutil
|
||||
PATHS /usr/lib /usr/lib64 )
|
||||
MARK_AS_ADVANCED(bncsutil_LIBRARY)
|
||||
|
||||
# Copy the results to the output variables.
|
||||
IF(bncsutil_INCLUDE_DIR AND bncsutil_LIBRARY)
|
||||
SET(bncsutil_FOUND 1)
|
||||
ELSE(bncsutil_INCLUDE_DIR AND bncsutil_LIBRARY)
|
||||
SET(bncsutil_FOUND 0)
|
||||
ENDIF(bncsutil_INCLUDE_DIR AND bncsutil_LIBRARY)
|
||||
@@ -1,17 +1,17 @@
|
||||
Index: ghost/game_base.cpp
|
||||
===================================================================
|
||||
--- ghost/game_base.cpp (revision 580)
|
||||
+++ ghost/game_base.cpp (working copy)
|
||||
@@ -388,12 +388,13 @@
|
||||
|
||||
// we also broadcast the game to the local network every 5 seconds so we hijack this timer for our nefarious purposes
|
||||
// however we only want to broadcast if the countdown hasn't started
|
||||
- // see the !sendlan code later in this file for some more information about how this works
|
||||
- // todotodo: should we send a game cancel message somewhere? we'll need to implement a host counter for it to work
|
||||
-
|
||||
- if( !m_CountDownStarted )
|
||||
- {
|
||||
- // construct a fixed host counter which will be used to identify players from this "realm" (i.e. LAN)
|
||||
Index: ghost/game_base.cpp
|
||||
===================================================================
|
||||
--- ghost/game_base.cpp (revision 580)
|
||||
+++ ghost/game_base.cpp (working copy)
|
||||
@@ -388,12 +388,13 @@
|
||||
|
||||
// we also broadcast the game to the local network every 5 seconds so we hijack this timer for our nefarious purposes
|
||||
// however we only want to broadcast if the countdown hasn't started
|
||||
- // see the !sendlan code later in this file for some more information about how this works
|
||||
- // todotodo: should we send a game cancel message somewhere? we'll need to implement a host counter for it to work
|
||||
-
|
||||
- if( !m_CountDownStarted )
|
||||
- {
|
||||
- // construct a fixed host counter which will be used to identify players from this "realm" (i.e. LAN)
|
||||
+ // see the !sendlan code later in this file for some more information about how this works
|
||||
+ // todotodo: should we send a game cancel message somewhere? we'll need to implement a host counter for it to work
|
||||
+
|
||||
@@ -19,23 +19,23 @@ Index: ghost/game_base.cpp
|
||||
+ if( !m_CountDownStarted )
|
||||
+ {
|
||||
+ // construct a fixed host counter which will be used to identify players from this "realm" (i.e. LAN)
|
||||
// the fixed host counter's 4 most significant bits will contain a 4 bit ID (0-15)
|
||||
// the rest of the fixed host counter will contain the 28 least significant bits of the actual host counter
|
||||
// since we're destroying 4 bits of information here the actual host counter should not be greater than 2^28 which is a reasonable assumption
|
||||
Index: ghost/ghost.cpp
|
||||
===================================================================
|
||||
--- ghost/ghost.cpp (revision 580)
|
||||
+++ ghost/ghost.cpp (working copy)
|
||||
@@ -677,12 +677,20 @@
|
||||
if( m_AdminGamePort == m_HostPort )
|
||||
CONSOLE_Print( "[GHOST] warning - admingame_port and bot_hostport are set to the same value, you won't be able to host any games" );
|
||||
}
|
||||
- else
|
||||
- m_AdminGame = NULL;
|
||||
-
|
||||
- if( m_BNETs.empty( ) && !m_AdminGame )
|
||||
- CONSOLE_Print( "[GHOST] warning - no battle.net connections found and no admin game created" );
|
||||
-
|
||||
// the fixed host counter's 4 most significant bits will contain a 4 bit ID (0-15)
|
||||
// the rest of the fixed host counter will contain the 28 least significant bits of the actual host counter
|
||||
// since we're destroying 4 bits of information here the actual host counter should not be greater than 2^28 which is a reasonable assumption
|
||||
Index: ghost/ghost.cpp
|
||||
===================================================================
|
||||
--- ghost/ghost.cpp (revision 580)
|
||||
+++ ghost/ghost.cpp (working copy)
|
||||
@@ -677,12 +677,20 @@
|
||||
if( m_AdminGamePort == m_HostPort )
|
||||
CONSOLE_Print( "[GHOST] warning - admingame_port and bot_hostport are set to the same value, you won't be able to host any games" );
|
||||
}
|
||||
- else
|
||||
- m_AdminGame = NULL;
|
||||
-
|
||||
- if( m_BNETs.empty( ) && !m_AdminGame )
|
||||
- CONSOLE_Print( "[GHOST] warning - no battle.net connections found and no admin game created" );
|
||||
-
|
||||
+ else
|
||||
+ m_AdminGame = NULL;
|
||||
+
|
||||
@@ -50,16 +50,16 @@ Index: ghost/ghost.cpp
|
||||
+ if( m_BNETs.empty( ) && !m_AdminGame )
|
||||
+ CONSOLE_Print( "[GHOST] warning - no battle.net connections found and no admin game created" );
|
||||
+
|
||||
#ifdef GHOST_MYSQL
|
||||
CONSOLE_Print( "[GHOST] GHost++ Version " + m_Version + " (with MySQL support)" );
|
||||
#else
|
||||
@@ -881,9 +889,23 @@
|
||||
{
|
||||
(*i)->SetFD( &fd, &send_fd, &nfds );
|
||||
++NumFDs;
|
||||
- }
|
||||
-
|
||||
- // before we call select we need to determine how long to block for
|
||||
#ifdef GHOST_MYSQL
|
||||
CONSOLE_Print( "[GHOST] GHost++ Version " + m_Version + " (with MySQL support)" );
|
||||
#else
|
||||
@@ -881,9 +889,23 @@
|
||||
{
|
||||
(*i)->SetFD( &fd, &send_fd, &nfds );
|
||||
++NumFDs;
|
||||
- }
|
||||
-
|
||||
- // before we call select we need to determine how long to block for
|
||||
+ }
|
||||
+ // 6. the Game Broadcasters
|
||||
+ for(vector<CTCPSocket * >::iterator i = m_GameBroadcasters.begin( ); i!= m_GameBroadcasters.end( ); i++ )
|
||||
@@ -77,19 +77,19 @@ Index: ghost/ghost.cpp
|
||||
+
|
||||
+
|
||||
+ // before we call select we need to determine how long to block for
|
||||
// previously we just blocked for a maximum of the passed usecBlock microseconds
|
||||
// however, in an effort to make game updates happen closer to the desired latency setting we now use a dynamic block interval
|
||||
// note: we still use the passed usecBlock as a hard maximum
|
||||
@@ -1170,12 +1192,37 @@
|
||||
}
|
||||
}
|
||||
|
||||
- m_LastAutoHostTime = GetTime( );
|
||||
- }
|
||||
-
|
||||
- return m_Exiting || AdminExit || BNETExit;
|
||||
-}
|
||||
-
|
||||
// previously we just blocked for a maximum of the passed usecBlock microseconds
|
||||
// however, in an effort to make game updates happen closer to the desired latency setting we now use a dynamic block interval
|
||||
// note: we still use the passed usecBlock as a hard maximum
|
||||
@@ -1170,12 +1192,37 @@
|
||||
}
|
||||
}
|
||||
|
||||
- m_LastAutoHostTime = GetTime( );
|
||||
- }
|
||||
-
|
||||
- return m_Exiting || AdminExit || BNETExit;
|
||||
-}
|
||||
-
|
||||
+ m_LastAutoHostTime = GetTime( );
|
||||
+ }
|
||||
+
|
||||
@@ -121,20 +121,20 @@ Index: ghost/ghost.cpp
|
||||
+ return m_Exiting || AdminExit || BNETExit;
|
||||
+}
|
||||
+
|
||||
void CGHost :: EventBNETConnecting( CBNET *bnet )
|
||||
{
|
||||
if( m_AdminGame )
|
||||
Index: ghost/ghost.h
|
||||
===================================================================
|
||||
--- ghost/ghost.h (revision 580)
|
||||
+++ ghost/ghost.h (working copy)
|
||||
@@ -130,13 +130,15 @@
|
||||
string m_AdminGameMap; // config value: the admin game map config to use
|
||||
unsigned char m_LANWar3Version; // config value: LAN warcraft 3 version
|
||||
uint32_t m_ReplayWar3Version; // config value: replay warcraft 3 version (for saving replays)
|
||||
- uint32_t m_ReplayBuildNumber; // config value: replay build number (for saving replays)
|
||||
- bool m_TCPNoDelay; // config value: use Nagle's algorithm or not
|
||||
- uint32_t m_MatchMakingMethod; // config value: the matchmaking method
|
||||
void CGHost :: EventBNETConnecting( CBNET *bnet )
|
||||
{
|
||||
if( m_AdminGame )
|
||||
Index: ghost/ghost.h
|
||||
===================================================================
|
||||
--- ghost/ghost.h (revision 580)
|
||||
+++ ghost/ghost.h (working copy)
|
||||
@@ -130,13 +130,15 @@
|
||||
string m_AdminGameMap; // config value: the admin game map config to use
|
||||
unsigned char m_LANWar3Version; // config value: LAN warcraft 3 version
|
||||
uint32_t m_ReplayWar3Version; // config value: replay warcraft 3 version (for saving replays)
|
||||
- uint32_t m_ReplayBuildNumber; // config value: replay build number (for saving replays)
|
||||
- bool m_TCPNoDelay; // config value: use Nagle's algorithm or not
|
||||
- uint32_t m_MatchMakingMethod; // config value: the matchmaking method
|
||||
+ uint32_t m_ReplayBuildNumber; // config value: replay build number (for saving replays)
|
||||
+ bool m_TCPNoDelay; // config value: use Nagle's algorithm or not
|
||||
+ uint32_t m_MatchMakingMethod; // config value: the matchmaking method
|
||||
@@ -143,10 +143,10 @@ Index: ghost/ghost.h
|
||||
+
|
||||
+ CGHost( CConfig *CFG );
|
||||
+ ~CGHost( );
|
||||
|
||||
- CGHost( CConfig *CFG );
|
||||
- ~CGHost( );
|
||||
-
|
||||
// processing functions
|
||||
|
||||
bool Update( long usecBlock );
|
||||
|
||||
- CGHost( CConfig *CFG );
|
||||
- ~CGHost( );
|
||||
-
|
||||
// processing functions
|
||||
|
||||
bool Update( long usecBlock );
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
Index: ghost/ghost.cpp
|
||||
===================================================================
|
||||
--- ghost/ghost.cpp (revision 572)
|
||||
+++ ghost/ghost.cpp (working copy)
|
||||
@@ -48,7 +48,7 @@
|
||||
#endif
|
||||
|
||||
#define __STORMLIB_SELF__
|
||||
-#include <stormlib/StormLib.h>
|
||||
+#include <StormLib.h>
|
||||
|
||||
/*
|
||||
|
||||
Index: ghost/map.cpp
|
||||
===================================================================
|
||||
--- ghost/map.cpp (revision 572)
|
||||
+++ ghost/map.cpp (working copy)
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "map.h"
|
||||
|
||||
#define __STORMLIB_SELF__
|
||||
-#include <stormlib/StormLib.h>
|
||||
+#include <StormLib.h>
|
||||
|
||||
#define ROTL(x,n) ((x)<<(n))|((x)>>(32-(n))) // this won't work with signed types
|
||||
#define ROTR(x,n) ((x)>>(n))|((x)<<(32-(n))) // this won't work with signed types
|
||||
Index: ghost/ghost.cpp
|
||||
===================================================================
|
||||
--- ghost/ghost.cpp (revision 572)
|
||||
+++ ghost/ghost.cpp (working copy)
|
||||
@@ -48,7 +48,7 @@
|
||||
#endif
|
||||
|
||||
#define __STORMLIB_SELF__
|
||||
-#include <stormlib/StormLib.h>
|
||||
+#include <StormLib.h>
|
||||
|
||||
/*
|
||||
|
||||
Index: ghost/map.cpp
|
||||
===================================================================
|
||||
--- ghost/map.cpp (revision 572)
|
||||
+++ ghost/map.cpp (working copy)
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "map.h"
|
||||
|
||||
#define __STORMLIB_SELF__
|
||||
-#include <stormlib/StormLib.h>
|
||||
+#include <StormLib.h>
|
||||
|
||||
#define ROTL(x,n) ((x)<<(n))|((x)>>(32-(n))) // this won't work with signed types
|
||||
#define ROTR(x,n) ((x)>>(n))|((x)<<(32-(n))) // this won't work with signed types
|
||||
|
||||
Reference in New Issue
Block a user