enhance timer sanity checks a bit
Four kinds of timers are defined but only two have ever been used. Have sanity checking complain if the other two occur or if 'kind' doesn't match any of the four. Also, replacing a perfectly normal use of isok() with an inline test just to pacify static analysis feels like a slippery slope, so handle that a little differently. I reordered the shrink_glob timer to put all object timers together. Unfortunately that warrants incrementing EDITLEVEL which invalidates existing save files.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 patchlevel.h $NHDT-Date: 1702079342 2023/12/08 23:49:02 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.247 $ */
|
||||
/* NetHack 3.7 patchlevel.h $NHDT-Date: 1703294869 2023/12/23 01:27:49 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.249 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Michael Allison, 2012. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -17,7 +17,7 @@
|
||||
* Incrementing EDITLEVEL can be used to force invalidation of old bones
|
||||
* and save files.
|
||||
*/
|
||||
#define EDITLEVEL 94
|
||||
#define EDITLEVEL 95
|
||||
|
||||
/*
|
||||
* Development status possibilities.
|
||||
|
||||
Reference in New Issue
Block a user