- Added the option to use $ as a prefix to a string table name everywhere in
MAPINFO where 'lookup' could be specified so that there is one consistent way to do it. - Added a missing NULL pointer check to S_Start. SVN r884 (trunk)
This commit is contained in:
parent
fd21005391
commit
eff5a4dad9
5 changed files with 51 additions and 10 deletions
|
|
@ -41,6 +41,7 @@
|
|||
#include "gi.h"
|
||||
#include "files.h"
|
||||
#include "m_png.h"
|
||||
#include "gstrings.h"
|
||||
|
||||
|
||||
//==========================================================================
|
||||
|
|
@ -102,7 +103,14 @@ void G_LeavingHub(int mode, cluster_info_t * cluster, wbstartstruct_t * wbs)
|
|||
}
|
||||
if (cluster->clustername)
|
||||
{
|
||||
strncpy(level.level_name, cluster->clustername, 64);
|
||||
if (cluster->flags & CLUSTER_LOOKUPNAME)
|
||||
{
|
||||
strncpy(level.level_name, GStrings(cluster->clustername), 64);
|
||||
}
|
||||
else
|
||||
{
|
||||
strncpy(level.level_name, cluster->clustername, 64);
|
||||
}
|
||||
level.level_name[63]=0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue