Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9410 in orxonox.OLD


Ignore:
Timestamp:
Jul 24, 2006, 11:20:25 AM (18 years ago)
Author:
patrick
Message:

some better debug and function call cleanup

Location:
branches/proxy/src/lib/network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/monitor/network_monitor.cc

    r9406 r9410  
    259259  PRINT(0)("================================= Network Monitor::debug() =====\n");
    260260  PRINT(0)(" I am: %s\n", this->localNode->getPeerInfo()->getNodeTypeString().c_str());
    261   PRINT(0)(" Total count of network connections: %i\n", this->playerNumber);
     261  PRINT(0)(" Total count of network connections: %i\n", this->connectionNumber);
     262  PRINT(0)(" Total count of players: %i\n", this->playerNumber);
    262263  PRINT(0)(" Max players on this server: %i\n", SharedNetworkData::getInstance()->getMaxPlayer());
    263264
  • branches/proxy/src/lib/network/proxy/network_settings.cc

    r9409 r9410  
    104104
    105105  LoadParam(root, "max-player", this, NetworkSettings, setMaxPlayer);
    106   LoadParam(root, "max-player-saturation", this, NetworkSettings, setMaxPlayerSaturations);
     106  LoadParam(root, "max-player-saturation", this, NetworkSettings, setMaxPlayerSaturation);
    107107
    108108
  • branches/proxy/src/lib/network/proxy/network_settings.h

    r9409 r9410  
    3636    /** @param number: sets the max number of players */
    3737    inline void setMaxPlayer(int number) { this->maxPlayer = number; }
     38    /** @returns teh max number of players */
     39    int getMaxPlayer() { return this->maxPlayer; }
    3840    /** sets the @param saturation: a threshold in percente when the proxy servers should be activated to be able to redirect the clients */
    3941    inline void setMaxPlayerSaturation(float saturation) { this->maxPlayerSaturation = saturation; }
    40     /** @returns teh max number of players */
    41     int getMaxPlayer() { return this->maxPlayer; }
     42
    4243
    4344    void setMasterAddr(const std::string& masterAddr);
Note: See TracChangeset for help on using the changeset viewer.