diff options
Diffstat (limited to 'src/game/game.cc')
-rw-r--r-- | src/game/game.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/game.cc b/src/game/game.cc index b6c0366..e481c9f 100644 --- a/src/game/game.cc +++ b/src/game/game.cc @@ -498,6 +498,7 @@ bool Game::load_ships() } else if (shipsini.got_key_float("maxspeed", shipmodel->shipmodel_maxspeed)) { continue; } else if (shipsini.got_key_float("turnspeed", shipmodel->shipmodel_turnspeed)) { + math::clamp(shipmodel->shipmodel_turnspeed, 0.0f, 90.0f); continue; } else { con_warn << shipsini.name() << " unknown key '" << shipsini.key() << "' at line " << shipsini.line() << std::endl; |