From b53a43027f3766589550ed5ae4fbb27be7f8de62 Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 28 Feb 2024 16:24:40 -0500 Subject: [PATCH] generic obj addition broke obj entity count use yet another EDITLEVEL bump --- include/patchlevel.h | 2 +- src/mdlib.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/patchlevel.h b/include/patchlevel.h index 130ae8beb..02d5573e2 100644 --- a/include/patchlevel.h +++ b/include/patchlevel.h @@ -17,7 +17,7 @@ * Incrementing EDITLEVEL can be used to force invalidation of old bones * and save files. */ -#define EDITLEVEL 100 +#define EDITLEVEL 101 /* * Development status possibilities. diff --git a/src/mdlib.c b/src/mdlib.c index 18db66993..740c3ecb1 100644 --- a/src/mdlib.c +++ b/src/mdlib.c @@ -306,11 +306,9 @@ make_version(void) for (i = 1; artifact_names[i]; i++) continue; version.entity_count = (unsigned long) (i - 1); - for (i = 1; objects[i].oc_class != ILLOBJ_CLASS; i++) - continue; + i = NUM_OBJECTS; version.entity_count = (version.entity_count << 12) | (unsigned long) i; - for (i = 0; mons[i].mlet; i++) - continue; + i = NUMMONS; version.entity_count = (version.entity_count << 12) | (unsigned long) i; /* * Value used for compiler (word size/field alignment/padding) check.