needs to be const, or doom ensues
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6240 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -135,7 +135,7 @@ struct servermapbuffer // sending of maps between clients
|
||||
// provide maps by the server
|
||||
|
||||
enum { MAP_NOTFOUND = 0, MAP_TEMP, MAP_CUSTOM, MAP_LOCAL, MAP_OFFICIAL, MAP_VOID };
|
||||
const char *maplocstr[] = { "not found", "temporary", "custom", "local", "official", "void" };
|
||||
const char * const maplocstr[] = { "not found", "temporary", "custom", "local", "official", "void" };
|
||||
#define readonlymap(x) ((x) >= MAP_CUSTOM)
|
||||
#define distributablemap(x) ((x) == MAP_TEMP || (x) == MAP_CUSTOM)
|
||||
|
||||
@@ -967,4 +967,4 @@ struct killmessagesfile : serverconfigfile
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user