check_version added

This commit is contained in:
p.kosyh 2010-06-11 09:12:19 +00:00
parent df391556e6
commit 3efc6b451c

View file

@ -2341,6 +2341,15 @@ function hook(o, f)
end
end
function check_version(v)
if not tostring(v) then
return
end
if stead.version < v then
error ([[The game requires instead engine of version ]] ..v.. [[ or higher. http://instead.googlecode.com]])
end
end
--- here the game begins
function stead_init()
pl = player {