Make Object_type_names const
This commit is contained in:
parent
203b85a0b1
commit
541961a2f7
|
@ -156,7 +156,7 @@ enum object_type_t
|
|||
*/
|
||||
|
||||
#if defined(DXX_BUILD_DESCENT_I) || defined(DXX_BUILD_DESCENT_II)
|
||||
extern char Object_type_names[MAX_OBJECT_TYPES][9];
|
||||
extern const char Object_type_names[MAX_OBJECT_TYPES][9];
|
||||
#if defined(DXX_BUILD_DESCENT_I)
|
||||
#define MAX_CONTROLCEN_GUNS 4
|
||||
#define MAX_RENDERED_WINDOWS 1
|
||||
|
|
|
@ -58,7 +58,7 @@ static void dump_used_textures_level(PHYSFS_file *my_file, int level_num);
|
|||
static void say_totals(PHYSFS_file *my_file, const char *level_name);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
static char *object_types(int objnum)
|
||||
static const char *object_types(int objnum)
|
||||
{
|
||||
int type = Objects[objnum].type;
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ int print_object_info = 0;
|
|||
window_rendered_data Window_rendered_data[MAX_RENDERED_WINDOWS];
|
||||
|
||||
#if defined(EDITOR) || !defined(NDEBUG)
|
||||
char Object_type_names[MAX_OBJECT_TYPES][9] = {
|
||||
const char Object_type_names[MAX_OBJECT_TYPES][9] = {
|
||||
"WALL ",
|
||||
"FIREBALL",
|
||||
"ROBOT ",
|
||||
|
|
Loading…
Reference in a new issue