Changeset 10618 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Apr 4, 2007, 12:13:53 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 16 16 OrxonoxPlayability.kdevses 17 17 OrxonoxPlayability.kdevelop.pcs 18 orxonox.backtrace 19 orxonox.kdevses 20 orxonox.kdevelop.pcs
-
- Property svn:ignore
-
trunk/src/lib/shell/shell_input.cc
r9916 r10618 24 24 #include "compiler.h" 25 25 #include "key_names.h" 26 27 #include "game_world.h" 28 #include "state.h" 26 29 27 30 … … 284 287 { 285 288 if (this->delayed > 0.0) 286 this->delayed -= dt; 289 { 290 StoryEntity* storyEntity = State::getCurrentStoryEntity(); 291 float speed = 1; 292 if ( storyEntity && storyEntity->isA( GameWorld::staticClassID() ) ) 293 { 294 speed = ((GameWorld*)storyEntity)->getSpeed(); 295 } 296 this->delayed -= dt / speed; 297 } 287 298 else if (this->pressedKey != SDLK_FIRST ) 288 299 {
Note: See TracChangeset
for help on using the changeset viewer.