From ceedc716cb0fe1e0360d2dd9e37a67ff726c4f0b Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 29 Jul 2008 19:36:51 +0000 Subject: first attempt at auto-leveling --- src/game/game.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game/game.cc') 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; -- cgit v1.2.3