Made some tweaks so I'm happy with it.

* Removed #defines
 * Fall back to using visible distance if ghost distance is not used
 * Removed ghost distance from level files as it will default
 * Renamed mConnectionVisibleDistance for consistency
This commit is contained in:
Daniel Buckmaster 2014-12-07 19:11:10 +11:00
parent 578c4e8f4f
commit a928d142f7
15 changed files with 21 additions and 100 deletions

View file

@ -39,8 +39,6 @@
#include "core/bitVector.h"
#endif
#include "torqueConfig.h"
enum GameConnectionConstants
{
MaxClients = 126,
@ -74,9 +72,7 @@ private:
U32 mMissionCRC; // crc of the current mission file from the server
#ifdef GHOSTSCOPING
F32 mConnectionVisibleDistance;
#endif
F32 mVisibleGhostDistance;
private:
U32 mLastControlRequestTime;
@ -161,10 +157,8 @@ public:
bool canRemoteCreate();
#ifdef GHOSTSCOPING
void setVisibleGhostDistance(F32 dist);
F32 getVisibleGhostDistance();
#endif
private:
/// @name Connection State