projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
88242c8
)
Make APPEND_STRING behave "sane".
author
Rudolf Polzer <divverent@xonotic.org>
Sun, 13 Oct 2013 00:04:58 +0000
(
02:04
+0200)
committer
Rudolf Polzer <divverent@xonotic.org>
Sun, 13 Oct 2013 00:04:58 +0000
(
02:04
+0200)
qcsrc/menu/xonotic/util.qc
patch
|
blob
|
history
diff --git
a/qcsrc/menu/xonotic/util.qc
b/qcsrc/menu/xonotic/util.qc
index
356b92d
..
3f65172
100644
(file)
--- a/
qcsrc/menu/xonotic/util.qc
+++ b/
qcsrc/menu/xonotic/util.qc
@@
-332,7
+332,7
@@
void UpdateNotification_URI_Get_Callback(float id, float status, string data)
switch(substring(argv(i), 0, 1))
{
switch(substring(argv(i), 0, 1))
{
- #define APPEND_
STRING(list,sep,add) list = ((list != "") ? strcat(list, sep, add) : add);
+ #define APPEND_
TO_STRING(list,sep,add) ((list) = (((list) != "") ? strcat(list, sep, add) : (add)))
case "V":
{
un_version = s;
case "V":
{
un_version = s;
@@
-350,23
+350,23
@@
void UpdateNotification_URI_Get_Callback(float id, float status, string data)
}
case "B":
{
}
case "B":
{
- APPEND_
STRING(un_bannedservers, " ", s)
+ APPEND_
TO_STRING(un_bannedservers, " ", s);
break;
}
case "E":
{
if(cvar("menu_updatecheck_getpacks"))
break;
}
case "E":
{
if(cvar("menu_updatecheck_getpacks"))
- { APPEND_STRING(un_emergency_pk3s, " ", s) }
+ APPEND_TO_STRING(un_emergency_pk3s, " ", s);
break;
}
case "P":
{
break;
}
case "P":
{
- APPEND_
STRING(un_promoted, " ", s)
+ APPEND_
TO_STRING(un_promoted, " ", s);
break;
}
case "R":
{
break;
}
case "R":
{
- APPEND_
STRING(un_recommended, " ", s)
+ APPEND_
TO_STRING(un_recommended, " ", s);
break;
}
}
break;
}
}