0.8.6 works

This commit is contained in:
p.kosyh 2009-08-27 04:38:56 +00:00
parent 37d0eaeabb
commit ca1011175e
8 changed files with 25 additions and 8 deletions

View file

@ -1,4 +1,4 @@
VERSION := \"0.8.5\"
VERSION := \"0.8.6\"
DESTDIR=
BIN=

View file

@ -1,4 +1,4 @@
VERSION := \"0.8.5\"
VERSION := \"0.8.6\"
DESTDIR=/usr/local
BIN=$(DESTDIR)/bin/

View file

@ -1,4 +1,4 @@
VERSION := \"0.8.5\"
VERSION := \"0.8.6\"
DESTDIR=
BIN=..\..\bin\\

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
instead (0.8.6) unstable; urgency=low
* cat game fixes
* seen extra parameter
-- Peter Kosyh <p.kosyh@gmail.com> Thu, 27 Aug 2009 08:32:00 +0400
instead (0.8.5) unstable; urgency=low
* possible segfaults in timer functions.

View file

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
Version=0.8.5
Version=0.8.6
Type=Application
Name=INSTEAD
Name[ru]=INSTEAD

View file

@ -355,7 +355,12 @@ forest = room {
home = room {
nam = 'хижина',
pic ="gfx/house.png",
pic = function(s)
if not seen('mycat') then
return "gfx/house-empty.png"
end
return "gfx/house.png";
end,
dsc = [[
В этой хижине я провел 10 лет. 10 лет назад я своими руками построил ее. Довольно тесно, но уютно.]],
obj = { 'fireplace', 'mytable', 'foto', 'mycat', 'gun',

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

View file

@ -1247,7 +1247,7 @@ function game_step(self)
return game_life(self);
end
version = "0.8";
version = "0.8.6";
game = game {
nam = "INSTEAD -- Simple Text Adventure interpreter v"..version.." '2009 by Peter Kosyh",
@ -1622,8 +1622,13 @@ function dropf(obj)
return o;
end
function seen(obj)
local o,w = here().obj:srch(obj);
function seen(obj, wh)
if not wh then
wh = here();
else
wh = ref(wh);
end
local o,w = wh.obj:srch(obj);
o = ref(o);
if isObject(o) then
return o,w