diff --git a/stead/stead.lua b/stead/stead.lua index 0152e41..c61dceb 100644 --- a/stead/stead.lua +++ b/stead/stead.lua @@ -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 {