Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2011, 5:00:20 AM (13 years ago)
Author:
rgrieder
Message:

Replaced code like
bool b = someFunction(); assert(b);
with
OrxVerify(someFunction(), "");
to remove warnings in release mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/network/GamestateManager.cc

    r8327 r8373  
    5454#include "util/Debug.h"
    5555#include "util/Clock.h"
     56#include "util/OrxAssert.h"
    5657// #include "TrafficControl.h"
    5758
     
    108109    // now push only the most recent gamestates we received (ignore obsolete ones)
    109110    for(it = gamestateQueue.begin(); it!=gamestateQueue.end(); it++){
    110       bool b = processGamestate(it->second);
    111       assert(b);
     111      OrxVerify(processGamestate(it->second), "");
    112112      sendAck( it->second->getID(), it->second->getPeerID() );
    113113      delete it->second;
     
    252252
    253253
    254 //     bool b = gs->compressData();
    255 //     assert(b);
     254//     OrxVerify(gs->compressData(), "");
    256255    clock.capture();
    257256    COUT(5) << "diff and compress time: " << clock.getDeltaTime() << endl;
     
    363362    if(gs->isCompressed())
    364363    {
    365        bool b = gs->decompressData();
    366        assert(b);
     364       OrxVerify(gs->decompressData(), "");
    367365    }
    368366    assert(!gs->isDiffed());
Note: See TracChangeset for help on using the changeset viewer.