Changeset 7010 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Feb 3, 2006, 12:40:23 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/movie_entity.cc
r6731 r7010 46 46 counter = 0; 47 47 timer = 0; 48 fps = media_container->getFPS();49 48 } 50 49 … … 66 65 //LoadParam(root, "rotation", this, MovieEntity, setRotation); 67 66 LoadParam(root, "size", this, MovieEntity, setSize); 67 LoadParam(root, "fps", this, MovieEntity, setFPS); 68 } 69 70 void MovieEntity::setFPS(float fps) 71 { 72 this->fps = fps; 73 PRINTF(0)("fps: %f\n", fps); 68 74 } 69 75 … … 71 77 { 72 78 if(media_container->loadMedia(filename)) 79 { 73 80 mediaLoaded = true; 81 fps = media_container->getFPS(); 82 } 74 83 else 75 84 mediaLoaded = false; … … 78 87 void MovieEntity::setAxis(float axis) 79 88 { 89 PRINTF(0)("fps: %f\n", fps); 80 90 this->axis = axis; 81 91 } … … 141 151 glPushAttrib(GL_ENABLE_BIT); 142 152 glDisable(GL_LIGHTING); 153 glDisable(GL_BLEND); 143 154 144 155 glEnable(GL_TEXTURE_2D); -
trunk/src/world_entities/movie_entity.h
r6981 r7010 41 41 void setRotation(float rotation); 42 42 void setSize(float width, float height); 43 void setFPS(float fps); 43 44 44 45 }; -
trunk/src/world_entities/playable.cc
r6994 r7010 305 305 { 306 306 SYNCHELP_READ_BEGIN(); 307 307 308 308 byte b; 309 309 SYNCHELP_READ_BYTE( b, NWT_PL_B ); 310 310 311 311 byte flags; 312 312 313 313 if ( b == DATA_FLAGS ) 314 314 { … … 316 316 317 317 bFire = (flags & FLAGS_bFire) != 0; 318 318 319 319 return SYNCHELP_READ_N; 320 320 } 321 321 322 322 if ( b == DATA_SCORE ) 323 323 { … … 325 325 SYNCHELP_READ_BYTE( newScore, NWT_PL_SCORE ); 326 326 setScore( newScore ); 327 327 328 328 return SYNCHELP_READ_N; 329 329 } … … 335 335 { 336 336 SYNCHELP_WRITE_BEGIN(); 337 337 338 338 if ( score != oldScore && isServer() ) 339 339 { … … 341 341 SYNCHELP_WRITE_INT( score, NWT_PL_SCORE ); 342 342 oldScore = score; 343 343 344 344 return SYNCHELP_WRITE_N; 345 345 } 346 346 347 347 byte flags = 0; 348 348
Note: See TracChangeset
for help on using the changeset viewer.