diff --git a/CorsixTH/Lua/world.lua b/CorsixTH/Lua/world.lua
index 1a6d6e4..36388fe 100644
--- a/CorsixTH/Lua/world.lua
+++ b/CorsixTH/Lua/world.lua
@@ -913,7 +913,6 @@ function World:setSpeed(speed)
if self:isCurrentSpeed(speed) then
return
end
- local pause_state_changed = nil
if speed == "Pause" then
-- stop screen shaking if there was an earthquake in progress
if self.active_earthquake then
@@ -921,7 +920,6 @@ function World:setSpeed(speed)
end
-- By default actions are not allowed when the game is paused.
self.user_actions_allowed = TheApp.config.allow_user_actions_while_paused
- pause_state_changed = true
elseif self:getCurrentSpeed() == "Pause" then
self.user_actions_allowed = true
end