Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Location:
code/trunk/src/libraries/network
Files:
2 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());
  • code/trunk/src/libraries/network/packet/Gamestate.cc

    r8327 r8373  
    3232
    3333#include "util/Debug.h"
     34#include "util/OrxAssert.h"
    3435#include "core/GameMode.h"
    3536#include "core/ObjectList.h"
     
    201202    {
    202203//       COUT(4) << "updating object of classid " << objectheader.getClassID() << endl;
    203       bool b = s->updateData(mem, mode);
    204       assert(b);
     204      OrxVerify(s->updateData(mem, mode), "");
    205205    }
    206206  }
Note: See TracChangeset for help on using the changeset viewer.