Skip to content

Commit

Permalink
Fix #1698, reverting units to nanoframe via Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
sprunk committed Dec 30, 2024
1 parent 33a8ff1 commit b6ad2ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rts/Lua/LuaSyncedCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1999,6 +1999,8 @@ int LuaSyncedCtrl::SetUnitHealth(lua_State* L)
case hashString("build"): {
if ((unit->buildProgress = lua_tofloat(L, LUA_TABLE_VALUE_INDEX)) >= 1.0f)
unit->FinishedBuilding(false);
else
unit->TurnIntoNanoframe();
} break;
default: {
} break;
Expand Down

0 comments on commit b6ad2ad

Please sign in to comment.