generic obj addition broke obj entity count use

yet another EDITLEVEL bump
This commit is contained in:
nhmall
2024-02-28 16:24:40 -05:00
parent 3edd3e5869
commit b53a43027f
2 changed files with 3 additions and 5 deletions

View File

@@ -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.

View File

@@ -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.