X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=saveresume.c;h=ab2e1fed3ad67e57457f5e44acc16cd474113d9f;hp=6e73017e48a32ff2cb4ee5eb89c37279ab7a8fc6;hb=2ddd09189336df222ef88099a3041584ec5b327e;hpb=3ca9613bcd75130a24a1ac4af19d4842aac2cf9c diff --git a/saveresume.c b/saveresume.c index 6e73017..ab2e1fe 100644 --- a/saveresume.c +++ b/saveresume.c @@ -18,12 +18,12 @@ #include "advent.h" #include "dungeon.h" -#define VRSION 28 /* bump on save format change */ +#define VRSION 29 /* bump on save format change */ /* * If you change the first three members, the resume function may not properly * reject saves from older versions. Yes, this glues us to a hardware- - * dependent length of long. Later members can change, but bump the version + * dependent length of int. Later members can change, but bump the version * when you do that. */ struct save_t { @@ -190,7 +190,7 @@ bool is_valid(struct game_t valgame) } /* Recalculate tally, throw the towel if in disagreement */ - long temp_tally = 0; + int temp_tally = 0; for (int treasure = 1; treasure <= NOBJECTS; treasure++) { if (objects[treasure].is_treasure) { if (valgame.prop[treasure] == STATE_NOTFOUND) {