Changeset 849
- Timestamp:
- 02/04/10 15:17:57 (5 weeks ago)
- Location:
- trunk/engine
- Files:
-
- 2 modified
-
MainCharacter/MainCharacter.cpp (modified) (3 diffs)
-
VideoServices/3DViewport.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/engine/MainCharacter/MainCharacter.cpp
r558 r849 280 280 } 281 281 // if mGameOpts now outlaw basic craft, we must update 282 while(!(lReturnValue->mGameOpts & ((int) pow(2 , 3- ((lReturnValue->mHoverModel + 4) % 4)))))282 while(!(lReturnValue->mGameOpts & ((int) pow(2.0f, 3.0f - ((lReturnValue->mHoverModel + 4) % 4))))) 283 283 lReturnValue->mHoverModel++; 284 284 … … 406 406 407 407 // ensure we are using an allowed craft 408 while(!(mGameOpts & ((int) pow(2 , 3- ((mHoverModel + 4) % 4)))))408 while(!(mGameOpts & ((int) pow(2.0f, 3.0f - ((mHoverModel + 4) % 4))))) 409 409 mHoverModel++; 410 410 } … … 414 414 415 415 // ensure we are using an allowed craft 416 while(!(mGameOpts & ((int) pow(2 , 3- ((mHoverModel + 4) % 4)))))416 while(!(mGameOpts & ((int) pow(2.0f, 3.0f - ((mHoverModel + 4) % 4))))) 417 417 mHoverModel--; 418 418 } -
trunk/engine/VideoServices/3DViewport.cpp
r504 r849 137 137 static_cast<MR_Int32>( 138 138 1024 * MR_BACK_Y_RES * mPlanVW / 139 (sqrt(pow(mPlanDist, 2 ) + pow((lCounter - mXRes / 2) * mPlanHW / (mXRes / 2), 2)) * (mYRes / 2))139 (sqrt(pow(mPlanDist, 2.0f) + pow((lCounter - mXRes / 2) * mPlanHW / (mXRes / 2), 2.0f)) * (mYRes / 2)) 140 140 ); 141 141 }
