Change: Remove scrollbar from town authority actions panel (#9928)

This commit is contained in:
Joel-Milligan
2022-11-12 06:52:38 +08:00
committed by GitHub
parent 64b437fa89
commit 59645c6733
6 changed files with 109 additions and 85 deletions

View File

@@ -258,7 +258,7 @@
if (ScriptObject::GetCompany() == OWNER_DEITY) return false;
if (!IsValidTown(town_id)) return false;
return HasBit(::GetMaskOfTownActions(nullptr, ScriptObject::GetCompany(), ::Town::Get(town_id)), town_action);
return HasBit(::GetMaskOfTownActions(ScriptObject::GetCompany(), ::Town::Get(town_id)), town_action);
}
/* static */ bool ScriptTown::PerformTownAction(TownID town_id, TownAction town_action)