timer fixed

This commit is contained in:
p.kosyh 2010-07-27 07:36:08 +00:00
parent ff3de03557
commit 080f4a515e

View file

@ -1,7 +1,11 @@
game.action = stead.hook(game.action, function(f, s, cmd, ...)
if cmd == 'user_timer' then
local r,v
r,v = call(s, 'timer');
if here().timer then
r,v = call(here(), 'timer');
elseif s.timer then
r,v = call(s, 'timer');
end
if r == nil and v == nil then
return nil, true
end