projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79a65d1
)
Proper handling of string/float counts for MSG_CHOICE
author
Samual Lenks <samual@xonotic.org>
Wed, 21 Aug 2013 23:25:59 +0000
(19:25 -0400)
committer
Samual Lenks <samual@xonotic.org>
Wed, 21 Aug 2013 23:25:59 +0000
(19:25 -0400)
qcsrc/common/notifications.qc
patch
|
blob
|
history
diff --git
a/qcsrc/common/notifications.qc
b/qcsrc/common/notifications.qc
index 187e2e4807e98b53f1ff79163979298ed3961378..5c5c41e1e49cd4dfe9eb40dc2ef2e60fa42e2a2e 100644
(file)
--- a/
qcsrc/common/notifications.qc
+++ b/
qcsrc/common/notifications.qc
@@
-813,6
+813,8
@@
void Create_Notification_Entity(
break;
}
}
+ notif.nent_stringcount = max(notif.nent_optiona.nent_stringcount, notif.nent_optionb.nent_stringcount);
+ notif.nent_floatcount = max(notif.nent_optiona.nent_floatcount, notif.nent_optionb.nent_floatcount);
}
break;
}