Skip to content

Commit

Permalink
Update CorsixTH/Lua/dialogs/fullscreen/town_map.lua
Browse files Browse the repository at this point in the history
Co-Authored-By: lewri <[email protected]>
  • Loading branch information
Matroftt and lewri committed Oct 7, 2024
1 parent 1eb656b commit 1f94c37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CorsixTH/Lua/dialogs/fullscreen/town_map.lua
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ function UITownMap:draw(canvas, x, y)
self.info_font:draw(canvas, radiators, x + 95, y + 265)

-- Heating costs
local heating_costs = app.config.free_build_mode and 0
or math.floor(((hospital.heating.radiator_heat *10)* radiators)* 7.5)
local heating_costs = app.config.free_build_mode and 0 or
math.floor(((hospital.heating.radiator_heat *10)* radiators)* 7.5)
self.info_font:draw(canvas, ("%8i"):format(heating_costs), x + 100, y + 355)

-- Draw balance with temporary offset in unicode languages
Expand Down Expand Up @@ -304,8 +304,8 @@ function UITownMap:draw(canvas, x, y)
local owner_num = map.th:getPlotOwner(self.hover_plot)
if owner_num == 0 then
owner = _S.town_map.for_sale
price = app.config.free_build_mode and "$0"
or ("$" .. map:getParcelPrice(self.hover_plot))
price = app.config.free_build_mode and "$0" or
("$" .. map:getParcelPrice(self.hover_plot))
else
owner = world.hospitals[owner_num].name
end
Expand Down

0 comments on commit 1f94c37

Please sign in to comment.