summaryrefslogtreecommitdiff
path: root/src/cat
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-05-31 23:53:32 (GMT)
committer jacob1 <jfu614@gmail.com>2013-05-31 23:53:32 (GMT)
commitb16524292e2d8c640e0e4e0801d5cb4e512e4707 (patch)
treec9b6dd2f0c6c253b8f879465ea7e9c4fe9c3d5a0 /src/cat
parent80380bbaa39735e08d42f599bcb3968b5a1a1cd4 (diff)
downloadpowder-b16524292e2d8c640e0e4e0801d5cb4e512e4707.zip
powder-b16524292e2d8c640e0e4e0801d5cb4e512e4707.tar.gz
fix bug where you had to start using a tool before setting it's strength
Diffstat (limited to 'src/cat')
-rw-r--r--src/cat/LuaScriptInterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp
index cea5e76..452a14c 100644
--- a/src/cat/LuaScriptInterface.cpp
+++ b/src/cat/LuaScriptInterface.cpp
@@ -1473,7 +1473,7 @@ int LuaScriptInterface::simulation_ambientAirTemp(lua_State * l)
lua_pushnumber(l, luacon_sim->air->ambientAirTemp);
return 1;
}
- int ambientAirTemp = luaL_optint(l, 1, -1);
+ int ambientAirTemp = luaL_optint(l, 1, 295.15f);
luacon_sim->air->ambientAirTemp = ambientAirTemp;
return 0;
}