More interesting Gehennom levels
Instead of just plain old boring mazes, spice up Gehennom by occasionally adding lava, iron bars, or even mines-style levels (with lava, of course). Of the fixed Gehennom levels, only Asmodeus' lair has been changed to add some random lava pools. Also some lua fixes and changes: - Fixed a selection negation bounding box being wrong. - Fixed a selection negated and ORed returning wrong results. - des.map now returns a selection of the map grids it touched. - When using des.map contents-function the commands following the map are not relative to it.
This commit is contained in:
+2
-2
@@ -8,7 +8,6 @@
|
||||
|
||||
struct selectionvar *l_selection_check(lua_State *, int);
|
||||
static struct selectionvar *l_selection_push_new(lua_State *);
|
||||
static void l_selection_push_copy(lua_State *, struct selectionvar *);
|
||||
|
||||
/* lua_CFunction prototypes */
|
||||
static int l_selection_new(lua_State *);
|
||||
@@ -106,7 +105,7 @@ l_selection_push_new(lua_State *L)
|
||||
}
|
||||
|
||||
/* push a copy of selectionvar tmp to lua stack */
|
||||
static void
|
||||
void
|
||||
l_selection_push_copy(lua_State *L, struct selectionvar *tmp)
|
||||
{
|
||||
struct selectionvar
|
||||
@@ -247,6 +246,7 @@ l_selection_not(lua_State *L)
|
||||
(void) l_selection_clone(L);
|
||||
sel2 = l_selection_check(L, 2);
|
||||
selection_not(sel2);
|
||||
lua_remove(L, 1);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user