diff options
| author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-03 19:31:33 +0100 |
|---|---|---|
| committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-03 19:31:33 +0100 |
| commit | 352056c23c6258c7acbd9593eacdf1e4bfef3e9e (patch) | |
| tree | 95ae2feadaa4fff4ebde977e5fb9f1a1b8fe3b32 /src/scripting | |
| parent | 6bb8e30f5afc1c77987d8fdef71df880e72db151 (diff) | |
Cleaned up and document a bit more the speed conversion functions.
Trivial fix.
Diffstat (limited to 'src/scripting')
| -rw-r--r-- | src/scripting/lua.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index f79f2f8..2635974 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -661,7 +661,7 @@ static int being_walk(lua_State *s) if (lua_isnumber(s, 4)) { being->setAttribute(ATTR_MOVE_SPEED_TPS, lua_tonumber(s, 4)); - being->setAttribute(ATTR_MOVE_SPEED_RAW, utils::tpsToSpeed( + being->setAttribute(ATTR_MOVE_SPEED_RAW, utils::tpsToRawSpeed( being->getModifiedAttribute(ATTR_MOVE_SPEED_TPS))); } |
