diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-29 19:36:51 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-29 19:36:51 +0000 |
commit | ceedc716cb0fe1e0360d2dd9e37a67ff726c4f0b (patch) | |
tree | c09228a09ea78a735c13d371659420fb3e51e754 /src/game/game.cc | |
parent | 8b356bcd3cab06db7a47f464bffef7a1b62f2d30 (diff) |
first attempt at auto-leveling
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; |