mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Merge branch 'no-skincolor-space-warning' into 'next'
Remove "skincolor name contains spaces" console warning Closes #280 See merge request STJr/SRB2!1148
This commit is contained in:
commit
e3bd66a210
1 changed files with 4 additions and 0 deletions
|
|
@ -1542,8 +1542,10 @@ static int lib_setSkinColor(lua_State *L)
|
||||||
strlcpy(info->name, n, MAXCOLORNAME+1);
|
strlcpy(info->name, n, MAXCOLORNAME+1);
|
||||||
if (strlen(n) > MAXCOLORNAME)
|
if (strlen(n) > MAXCOLORNAME)
|
||||||
CONS_Alert(CONS_WARNING, "skincolor_t field 'name' ('%s') longer than %d chars; clipped to %s.\n", n, MAXCOLORNAME, info->name);
|
CONS_Alert(CONS_WARNING, "skincolor_t field 'name' ('%s') longer than %d chars; clipped to %s.\n", n, MAXCOLORNAME, info->name);
|
||||||
|
#if 0
|
||||||
if (strchr(info->name, ' ') != NULL)
|
if (strchr(info->name, ' ') != NULL)
|
||||||
CONS_Alert(CONS_WARNING, "skincolor_t field 'name' ('%s') contains spaces.\n", info->name);
|
CONS_Alert(CONS_WARNING, "skincolor_t field 'name' ('%s') contains spaces.\n", info->name);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (info->name[0] != '\0') // don't check empty string for dupe
|
if (info->name[0] != '\0') // don't check empty string for dupe
|
||||||
{
|
{
|
||||||
|
|
@ -1633,8 +1635,10 @@ static int skincolor_set(lua_State *L)
|
||||||
strlcpy(info->name, n, MAXCOLORNAME+1);
|
strlcpy(info->name, n, MAXCOLORNAME+1);
|
||||||
if (strlen(n) > MAXCOLORNAME)
|
if (strlen(n) > MAXCOLORNAME)
|
||||||
CONS_Alert(CONS_WARNING, "skincolor_t field 'name' ('%s') longer than %d chars; clipped to %s.\n", n, MAXCOLORNAME, info->name);
|
CONS_Alert(CONS_WARNING, "skincolor_t field 'name' ('%s') longer than %d chars; clipped to %s.\n", n, MAXCOLORNAME, info->name);
|
||||||
|
#if 0
|
||||||
if (strchr(info->name, ' ') != NULL)
|
if (strchr(info->name, ' ') != NULL)
|
||||||
CONS_Alert(CONS_WARNING, "skincolor_t field 'name' ('%s') contains spaces.\n", info->name);
|
CONS_Alert(CONS_WARNING, "skincolor_t field 'name' ('%s') contains spaces.\n", info->name);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (info->name[0] != '\0') // don't check empty string for dupe
|
if (info->name[0] != '\0') // don't check empty string for dupe
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue