Merge branch 'NetHack-3.6.2'
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 sp_lev.c $NHDT-Date: 1550524566 2019/02/18 21:16:06 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.110 $ */
|
||||
/* NetHack 3.6 sp_lev.c $NHDT-Date: 1553787633 2019/03/28 15:40:33 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.111 $ */
|
||||
/* Copyright (c) 1989 by Jean-Christophe Collet */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -4691,13 +4691,16 @@ struct sp_coder *coder;
|
||||
{
|
||||
static const char nhFunc[] = "spo_drawbridge";
|
||||
xchar x, y;
|
||||
int dopen;
|
||||
struct opvar *dir, *db_open, *dcoord;
|
||||
|
||||
if (!OV_pop_i(dir) || !OV_pop_i(db_open) || !OV_pop_c(dcoord))
|
||||
return;
|
||||
|
||||
get_location_coord(&x, &y, DRY | WET | HOT, coder->croom, OV_i(dcoord));
|
||||
if (!create_drawbridge(x, y, OV_i(dir), OV_i(db_open)))
|
||||
if ((dopen = OV_i(db_open)) == -1)
|
||||
dopen = !rn2(2);
|
||||
if (!create_drawbridge(x, y, OV_i(dir), dopen ? TRUE : FALSE))
|
||||
impossible("Cannot create drawbridge.");
|
||||
g.SpLev_Map[x][y] = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user