version 1.74 | | version 1.75 |
---|
| | |
%{ | | %{ |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: loader.l,v 1.74 2006/02/07 07:54:45 mwedel Exp $"; | | * "$Id: loader.l,v 1.75 2006/02/17 21:29:47 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
static char lorebuf[HUGE_BUF]; | | static char lorebuf[HUGE_BUF]; |
| | |
/* Maps the MOVE_* values to names */ | | /* Maps the MOVE_* values to names */ |
static char *move_name[] = {"walk", "fly_low", "fly_high", "swim", "boat", | | static const char *const move_name[] = {"walk", "fly_low", "fly_high", "swim", "boat", |
NULL}; | | NULL}; |
| | |
/* This table is only necessary to convert objects that existed before the | | /* This table is only necessary to convert objects that existed before the |
| | |
* NULL entries in this table are valid - to denote objects that should | | * NULL entries in this table are valid - to denote objects that should |
* not be updated for whatever reason. | | * not be updated for whatever reason. |
*/ | | */ |
char *spell_mapping[] = { | | const char *const spell_mapping[] = { |
"spell_magic_bullet", /* 0 */ | | "spell_magic_bullet", /* 0 */ |
"spell_small_fireball", /* 1 */ | | "spell_small_fireball", /* 1 */ |
"spell_medium_fireball", /* 2 */ | | "spell_medium_fireball", /* 2 */ |
| | |
* the 15'th element of this array should match that name. | | * the 15'th element of this array should match that name. |
* If an entry is NULL, that is a flag not to loaded/saved. | | * If an entry is NULL, that is a flag not to loaded/saved. |
*/ | | */ |
static char *flag_names[NUM_FLAGS+1] = { | | static const char *const flag_names[NUM_FLAGS+1] = { |
"alive", "wiz", NULL, NULL, "was_wiz", "applied", "unpaid", | | "alive", "wiz", NULL, NULL, "was_wiz", "applied", "unpaid", |
"can_use_shield", "no_pick", NULL /* walk_on*/, NULL /* no_pass */, /* 10 */ | | "can_use_shield", "no_pick", NULL /* walk_on*/, NULL /* no_pass */, /* 10 */ |
"is_animated", NULL /* slow_move */, | | "is_animated", NULL /* slow_move */, |
| | |
| | |
/*For get_ob_diff speed reason*/ | | /*For get_ob_diff speed reason*/ |
typedef struct { | | typedef struct { |
char* name; | | const char *name; |
int length; | | int length; |
}genericname; | | }genericname; |
static genericname evtnames[13]= | | static genericname evtnames[13]= |