Permalink
Browse files

HospitalcountSittingStanding ignore patients idle in room like receiv…

…ing treatment in pharmacy as 'standing'
  • Loading branch information...
mugmuggy committed Sep 25, 2018
1 parent 2bf4206 commit eb9662e92c22dcc6bbf8e3fa50700c05b2ce4baa
Showing with 1 addition and 1 deletion.
  1. +1 −1 CorsixTH/Lua/hospital.lua
@@ -692,7 +692,7 @@ function Hospital:countSittingStanding()
local numberStanding = 0
for _, patient in ipairs(self.patients) do
local pat_action = patient:getCurrentAction()
if pat_action.name == "idle" then
if pat_action.name == "idle" and not patient:getRoom() then
numberStanding = numberStanding + 1
elseif pat_action.name == "use_object" and pat_action.object.object_type.id == "bench" then
numberSitting = numberSitting + 1

0 comments on commit eb9662e

Please sign in to comment.