Move light source and timer types so zero means none
Breaks saves and bones.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
* Incrementing EDITLEVEL can be used to force invalidation of old bones
|
||||
* and save files.
|
||||
*/
|
||||
#define EDITLEVEL 102
|
||||
#define EDITLEVEL 103
|
||||
|
||||
/*
|
||||
* Development status possibilities.
|
||||
|
||||
@@ -10,11 +10,12 @@ typedef void (*timeout_proc)(ANY_P *, long);
|
||||
|
||||
/* kind of timer */
|
||||
enum timer_type {
|
||||
TIMER_LEVEL = 0, /* event specific to level [melting ice] */
|
||||
TIMER_GLOBAL = 1, /* event follows current play [not used] */
|
||||
TIMER_OBJECT = 2, /* event follows an object [various] */
|
||||
TIMER_MONSTER = 3, /* event follows a monster [not used] */
|
||||
NUM_TIMER_KINDS /* 4 */
|
||||
TIMER_NONE = 0,
|
||||
TIMER_LEVEL = 1, /* event specific to level [melting ice] */
|
||||
TIMER_GLOBAL = 2, /* event follows current play [not used] */
|
||||
TIMER_OBJECT = 3, /* event follows an object [various] */
|
||||
TIMER_MONSTER = 4, /* event follows a monster [not used] */
|
||||
NUM_TIMER_KINDS /* 5 */
|
||||
};
|
||||
|
||||
/* save/restore timer ranges */
|
||||
|
||||
@@ -12,8 +12,12 @@
|
||||
/*
|
||||
* Light source sources
|
||||
*/
|
||||
#define LS_OBJECT 0
|
||||
#define LS_MONSTER 1
|
||||
enum ls_sources {
|
||||
LS_NONE = 0,
|
||||
LS_OBJECT = 1,
|
||||
LS_MONSTER = 2,
|
||||
NUM_LS_SOURCES
|
||||
};
|
||||
|
||||
/*
|
||||
* cansee() - Returns true if the hero can see the location.
|
||||
|
||||
Reference in New Issue
Block a user