Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 14, 2008, 9:39:57 PM (16 years ago)
Author:
rgrieder
Message:
  • replaced all String2Number with ConvertValue
  • replaced all tokenize with SubString
  • dealt with warnings under msvc
  • removed some warnings by placing casts
  • bugfix in audio: local variable pushed into member variable std::vector
  • updated StableHeaders.h
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/network/GameStateManager.cc

    r1062 r1064  
    133133      // run Synchronisable::getData with offset and additional place for 3 ints in between (for ids and length)
    134134      sync=it->getData((retval->data)+offset+3*sizeof(int));
    135       *(retval->data+offset)=sync.length;
    136       *(retval->data+offset+sizeof(int))=sync.objectID;
    137       *(retval->data+offset+2*sizeof(int))=sync.classID;
     135      *(retval->data+offset)=(unsigned char)sync.length;
     136      *(retval->data+offset+sizeof(int))=(unsigned char)sync.objectID;
     137      *(retval->data+offset+2*sizeof(int))=(unsigned char)sync.classID;
    138138      // increase data pointer
    139139      offset+=tempsize+3*sizeof(int);
Note: See TracChangeset for help on using the changeset viewer.