compat layer was broken
This commit is contained in:
parent
fa13cac94e
commit
47e2ffca46
|
@ -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, ...)
|
||||
|
|
|
@ -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, ...);
|
||||
|
|
|
@ -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, ...);
|
||||
|
|
Loading…
Reference in a new issue