compat layer was broken

This commit is contained in:
p.kosyh 2011-04-20 17:44:10 +00:00
parent fa13cac94e
commit 47e2ffca46
3 changed files with 9 additions and 0 deletions

View file

@ -87,6 +87,9 @@ function(f, s, cmd, press, mb, x, y, px, py, ...)
end
end
end
if stead.api_version < "1.3.5" and r == nil and v == nil then
return nil, true
end
return r,v
end
return f(s, cmd, x, y, px, py, ...)

View file

@ -8,6 +8,9 @@ game.action = stead.hook(game.action, function(f, s, cmd, ...)
r,v = call(s, 'kbd',
input.key_event.down, input.key_event.key);
end
if stead.api_version < "1.3.5" and r == nil and v == nil then
return nil, true
end
return r,v
end
return f(s, cmd, ...);

View file

@ -6,6 +6,9 @@ game.action = stead.hook(game.action, function(f, s, cmd, ...)
elseif s.timer then
r,v = call(s, 'timer');
end
if stead.api_version < "1.3.5" and r == nil and v == nil then
return nil, true
end
return r,v
end
return f(s, cmd, ...);