summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-25 20:33:43 -0400
committerDavid Gay <david@davidgay.org>2021-05-25 20:33:43 -0400
commit7c191c15e3a16c5c4c53f6d83c89fe6d1219b6e5 (patch)
tree7a1fe7549545aefcd93d558a7ff8cbb4b418b8dd /app/controllers
parentf62c26d1dade224871a3043e1e47963b358bd345 (diff)
Make sure to always restart activity if no queued_actions
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/game_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb
index c5bfdbc..4b96b49 100644
--- a/app/controllers/game_controller.rb
+++ b/app/controllers/game_controller.rb
@@ -102,6 +102,8 @@ class GameController < ApplicationController
current_char.stop_activity
@results.push({ type: "message", body: "You have finished your work." })
end
+ else
+ current_char.activity_started_at = Time.now
end
end
rescue ItemQuantityError