#include "advent.h"
#include "database.h"
+#define VRSION 25 /* bump on save format change */
+
/*
* Action handlers. Eventually we'll do lookup through a method table
* that calls these. Absolutely nothing like the original FORTRAN.
* fixed), move rug there (not fixed), and move him there,
* too. Then do a null motion to get new description. */
RSPEAK(49);
- GETIN(input,WD1,WD1X,WD2,WD2X);
+ GETIN(input,&WD1,&WD1X,&WD2,&WD2X);
if (WD1 != MAKEWD(25) && WD1 != MAKEWD(250519))
return(2607);
PSPEAK(DRAGON,3);
/* Suspend and resume */
{
int kk;
+ long i;
if (!resume) {
/* Suspend. Offer to save things in a file, but charging
* some points (so can't win by using saved games to retry
* for I/O. All the SAV* functions can be scrapped.
*/
- DATIME(&I,&K);
- K=I+650*K;
+ DATIME(&i,&K);
+ K=i+650*K;
SAVWRD(kk,K);
K=VRSION;
SAVWRD(0,K);
}
if (obj != AXE)
return(discard(obj, false));
- I=ATDWRF(game.loc);
- if (I <= 0) {
+ int i=ATDWRF(game.loc);
+ if (i <= 0) {
if (AT(DRAGON) && game.prop[DRAGON] == 0) {
SPK=152;
return throw_support(SPK);
SPK=48;
return throw_support(SPK);
}
- game.dseen[I]=false;
- game.dloc[I]=0;
+ game.dseen[i]=false;
+ game.dloc[i]=0;
SPK=47;
game.dkill=game.dkill+1;
if (game.dkill == 1)SPK=149;