Skip to content

Commit

Permalink
Fix VTOLs teleporting to a planet 2.5 million tiles up, due to missin…
Browse files Browse the repository at this point in the history
…g cast before division in last commit.
  • Loading branch information
Cyp committed Nov 19, 2010
1 parent 53da8ac commit a0ea827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gamelib/gtime.h
Expand Up @@ -148,7 +148,7 @@ extern float realTimeFraction; ///< Private performance calculation. Do not use
/// Returns the value times deltaGameTime, converted to seconds.
static inline int32_t gameTimeAdjustedIncrement(int value)
{
return value * deltaGameTime / GAME_TICKS_PER_SEC;
return value * (int)deltaGameTime / GAME_TICKS_PER_SEC;
}
/// Returns the value times deltaGraphicsTime, converted to seconds.
static inline float graphicsTimeAdjustedIncrement(float value)
Expand Down

0 comments on commit a0ea827

Please sign in to comment.