mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-02 23:28:55 +02:00
database: DBPlaneShortName() return const char *
This commit is contained in:
@@ -347,11 +347,11 @@ DBTypeShortName(
|
||||
return ("???");
|
||||
}
|
||||
|
||||
char *
|
||||
DBPlaneShortName(pNum)
|
||||
int pNum;
|
||||
const char *
|
||||
DBPlaneShortName(
|
||||
int pNum)
|
||||
{
|
||||
NameList *tbl;
|
||||
const NameList *tbl;
|
||||
|
||||
for (tbl = dbPlaneNameLists.sn_next;
|
||||
tbl != &dbPlaneNameLists;
|
||||
|
||||
@@ -1058,7 +1058,7 @@ extern HashTable DBTypeAliasTable;
|
||||
extern char *DBPlaneLongNameTbl[NP];
|
||||
|
||||
/* Gives a short name for each plane: */
|
||||
extern char *DBPlaneShortName();
|
||||
extern const char *DBPlaneShortName();
|
||||
|
||||
/* Gives for each plane a mask of all tile types stored in that plane: */
|
||||
extern TileTypeBitMask DBPlaneTypes[NP];
|
||||
|
||||
Reference in New Issue
Block a user