Attempt to repair GitLab build breakage.

This commit is contained in:
Eric S. Raymond 2017-06-07 21:26:45 -04:00
parent a45f297dc7
commit ff36dff18f
3 changed files with 15 additions and 16 deletions

View file

@ -9,6 +9,7 @@
#define DALTLC 18 /* alternate dwarf location; low room */ #define DALTLC 18 /* alternate dwarf location; low room */
#define MINTRS 50 #define MINTRS 50
#define MAXTRS 79 #define MAXTRS 79
#define MAXPARMS 25
typedef struct lcg_state typedef struct lcg_state
{ {

2
main.c
View file

@ -14,7 +14,7 @@
struct game_t game; struct game_t game;
long LNLENG, LNPOSN, PARMS[26]; long LNLENG, LNPOSN, PARMS[MAXPARMS+1];
char rawbuf[LINESIZE], INLINE[LINESIZE+1], MAP1[129], MAP2[129]; char rawbuf[LINESIZE], INLINE[LINESIZE+1], MAP1[129], MAP2[129];
long AMBER, ATTACK, AXE, BACK, BATTER, BEAR, BIRD, BLOOD, long AMBER, ATTACK, AXE, BACK, BATTER, BEAR, BIRD, BLOOD,

18
misc.c
View file

@ -521,12 +521,9 @@ void MOVE(long object, long where)
long from; long from;
if (object > NOBJECTS) if (object > NOBJECTS)
goto L1;
from=game.place[object];
goto L2;
L1:
from=game.fixed[object-NOBJECTS]; from=game.fixed[object-NOBJECTS];
L2: else
from=game.place[object];
if (from > 0 && from <= 300) if (from > 0 && from <= 300)
CARRY(object,from); CARRY(object,from);
DROP(object,where); DROP(object,where);
@ -570,13 +567,14 @@ void DROP(long object, long where)
* game.holdng if the object was being toted. */ * game.holdng if the object was being toted. */
{ {
if (object > NOBJECTS) if (object > NOBJECTS)
goto L1; game.fixed[object-NOBJECTS] = where;
else
{
if (game.place[object] == -1) if (game.place[object] == -1)
game.holdng=game.holdng-1; --game.holdng;
game.place[object] = where; game.place[object] = where;
goto L2; }
L1: game.fixed[object-NOBJECTS]=where; if (where <= 0)
L2: if (where <= 0)
return; return;
game.link[object] = game.atloc[where]; game.link[object] = game.atloc[where];
game.atloc[where] = object; game.atloc[where] = object;