From 2e7946448345a39ec91301fa6da61dda68a39545 Mon Sep 17 00:00:00 2001 From: Vadzim Valchkovich Date: Thu, 8 Jun 2023 21:39:54 +0200 Subject: [PATCH] upgraded table status logic --- src/obj/Table.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/obj/Table.py b/src/obj/Table.py index a39e5f7..09dfae5 100644 --- a/src/obj/Table.py +++ b/src/obj/Table.py @@ -13,7 +13,7 @@ class Table(Object): def isActual(self, current_time): if self.is_actual and self.agent_role == "table": - if current_time - self.waiting_time > 1000: + if current_time - self.waiting_time > 500: self.reset_role(current_time) self.reset_status() @@ -32,6 +32,8 @@ class Table(Object): def updateState(self, current_time, predictor): if self.is_actual: + if self.agent_role == "table": + self.waiting_time = current_time return self.unsetMark() self.is_actual = True