Changeset 10218 for code/trunk/src/modules/jump/JumpFigure.cc
- Timestamp:
- Jan 31, 2015, 11:29:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/jump/JumpFigure.cc
r10215 r10218 184 184 // Move through the left and right screen boundaries 185 185 Vector3 position = getPosition(); 186 if (position.x < -fieldWidth_*1.1 )187 { 188 position.x = fieldWidth_*1.1 ;189 } 190 else if (position.x > fieldWidth_*1.1 )191 { 192 position.x = -fieldWidth_*1.1 ;186 if (position.x < -fieldWidth_*1.1f) 187 { 188 position.x = fieldWidth_*1.1f; 189 } 190 else if (position.x > fieldWidth_*1.1f) 191 { 192 position.x = -fieldWidth_*1.1f; 193 193 } 194 194 setPosition(position); … … 207 207 { 208 208 Vector3 velocity = getVelocity(); 209 velocity.z = (bootsActive_ ? 1.2 *jumpSpeed_ : jumpSpeed_);209 velocity.z = (bootsActive_ ? 1.2f*jumpSpeed_ : jumpSpeed_); 210 210 setVelocity(velocity); 211 211 … … 221 221 { 222 222 Vector3 velocity = getVelocity(); 223 velocity.z = 1.2 *jumpSpeed_;223 velocity.z = 1.2f*jumpSpeed_; 224 224 setVelocity(velocity); 225 225 }
Note: See TracChangeset
for help on using the changeset viewer.