tFix for reporting of empty high score file to metaserver - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit b6545fef04d2308b7417d76d3b988b87fb063185
(DIR) parent e5af69e712b5fecd1d6aa63d6f813be0b838c1d3
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Sun, 29 Apr 2001 16:58:11 +0000
Fix for reporting of empty high score file to metaserver
Diffstat:
M src/serverside.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/src/serverside.c b/src/serverside.c
t@@ -162,7 +162,8 @@ void RegisterWithMetaServer(char Up,char SendData) {
for (i=0;i<NUMHISCORE;i++) {
text=g_strdup_printf("multi\n%d\n%s^%s^%s^%c",
i,prstr=FormatPrice(MultiScore[i].Money),MultiScore[i].Time,
- MultiScore[i].Name,MultiScore[i].Dead ? '1':'0');
+ MultiScore[i].Name ? MultiScore[i].Name : "",
+ MultiScore[i].Dead ? '1':'0');
g_free(prstr);
if (!SendToMetaServer(Up,MetaSock,text,&MetaAddr)) {
g_free(text);