From 1de523df8fe860a79c327c383f3ddae3130d00cc Mon Sep 17 00:00:00 2001 From: sprunk Date: Mon, 7 Oct 2024 01:22:21 +0200 Subject: [PATCH] Apply the #1595 change to code from #1581 --- rts/Lua/LuaWeaponDefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rts/Lua/LuaWeaponDefs.cpp b/rts/Lua/LuaWeaponDefs.cpp index 29862df150..bcb2af46db 100644 --- a/rts/Lua/LuaWeaponDefs.cpp +++ b/rts/Lua/LuaWeaponDefs.cpp @@ -346,7 +346,7 @@ static int NoGroundCollide(lua_State* L, const void* data) static int FramesToSeconds(lua_State* L, const void* data) { const auto frames = *reinterpret_cast (data); - lua_pushnumber(L, frames / float(GAME_SPEED)); + lua_pushnumber(L, frames * INV_GAME_SPEED); return 1; }