Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-29 19:36:51 +0000
committerStijn Buys <ingar@osirion.org>2008-07-29 19:36:51 +0000
commitceedc716cb0fe1e0360d2dd9e37a67ff726c4f0b (patch)
treec09228a09ea78a735c13d371659420fb3e51e754 /src/game/game.cc
parent8b356bcd3cab06db7a47f464bffef7a1b62f2d30 (diff)
first attempt at auto-leveling
Diffstat (limited to 'src/game/game.cc')
-rw-r--r--src/game/game.cc1
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;