Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2008, 1:42:17 AM (16 years ago)
Author:
rgrieder
Message:
  • updated msvc files
  • Fixed build by including util/Integer.h in NetworkPrereqs.h instead of util/Math.h
  • Fixed issue with a this pointer used in the base class c'tor initialisation
  • Fixed build under windows: INFINITE seems to be a macro, defined in winbase.h. Constant was somewhere in the quest files.
  • Fixed build: Only integral types can have header-file value when declared as static const. Float is not supported by the standard.
  • Fixed a potential bug in Planet.cc: "if (cond) doOne; doTwo" —> missing brances (indentation was correct, so I assume there have to be brances)
  • Corrected lots of indentation problems with tabs/spaces mix.
  • Changed all "@file Blubb.h" to "@file": Doxygen then assumes the actual filename. This gives more flexibility.
Location:
code/branches/presentation/src/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/network/NetworkPrereqs.h

    r2415 r2435  
    5959// Includes
    6060//-----------------------------------------------------------------------
    61 #include "util/Math.h"
     61#include "util/Integers.h"
    6262
     63//-----------------------------------------------------------------------
     64// Library global contants
     65//-----------------------------------------------------------------------
     66namespace orxonox
     67{
     68  static const unsigned int GAMESTATEID_INITIAL = (unsigned int)-1;
     69  static const unsigned int CLIENTID_UNKNOWN    = (unsigned int)-2;
     70  static const uint32_t     OBJECTID_UNKNOWN    = (uint32_t)(-1);
     71}
    6372
    6473//-----------------------------------------------------------------------
     
    6776namespace orxonox
    6877{
    69 
    70 // Constants definition
    71 
    72   static const unsigned int GAMESTATEID_INITIAL = (unsigned int)-1;
    73   static const unsigned int CLIENTID_UNKNOWN = (unsigned int)-2;
    74   static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1);
    75 
    76  
    77 
    78  
    7978  class Client;
    8079  class ClientConnection;
     
    102101  class obj;
    103102  class objInfo;
    104   namespace packet{
     103
     104  namespace packet
     105  {
    105106    class Gamestate;
    106107    class Packet;
  • code/branches/presentation/src/network/packet/Gamestate.cc

    r2419 r2435  
    355355  uint32_t objectOffset;
    356356  unsigned int objectsize, destsize=0;
    357   Synchronisable *object;
     357  // TODO: Why is this variable not used?
     358  //Synchronisable *object;
    358359
    359360  //call TrafficControl
Note: See TracChangeset for help on using the changeset viewer.