game.action added

This commit is contained in:
p.kosyh 2010-03-10 12:42:39 +00:00
parent 34598fece9
commit 6c0bebcdd5
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -2,6 +2,8 @@ instead (1.1.5) unstable; urgency=low
* multiple anigif in one layout fix
* click in picture event
* game.action callback
* bug in <g: > parsing
-- Peter Kosyh <p.kosyh@gmail.com> Wed, 10 Mar 2010 15:20:51 +0300

View file

@ -990,7 +990,7 @@ function player_action(self, what, ...)
local v,r,obj
obj = ref(self.where):srch(what);
if not obj then
return nil; --player_do(self, what, unpack(arg));
return call(ref(game), 'action', what, unpack(arg)); --player_do(self, what, unpack(arg));
end
v, r = player_take(self, what);
if not v then