Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 22, 2009, 1:12:13 PM (15 years ago)
Author:
rgrieder
Message:

Removed a few warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gamestates/GSDedicated.cc

    r3198 r3205  
    6060        , timeSinceLastUpdate_(0)
    6161        , closeThread_(false)
     62        , cleanLine_(true)
    6263        , inputIterator_(0)
    63         , cleanLine_(true)
    6464        , cursorX_(0)
    6565        , cursorY_(0)
     
    117117        else
    118118        {
    119             usleep((unsigned int)((NETWORK_PERIOD - timeSinceLastUpdate_)*1000*1000 ));
    120             usleep(NETWORK_PERIOD*1000*1000); // NOTE: this is to throttle the non-network framerate
     119            msleep(static_cast<unsigned int>((NETWORK_PERIOD - timeSinceLastUpdate_)*1000));
     120            msleep(static_cast<unsigned int>(NETWORK_PERIOD*1000)); // NOTE: this is to throttle the non-network framerate
    121121//            COUT(0) << "sleeping for " << (int)((NETWORK_PERIOD - timeSinceLastUpdate_) * 1000 * 1000) << " usec" << endl;
    122122        }
Note: See TracChangeset for help on using the changeset viewer.