From 25d721153d6ca5f098d5af65237b8ea6377784c6 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 15 May 2007 10:58:45 +0000 Subject: [PATCH] tell the server we handled the info change --- makefile | 4 ++-- tforttm.qc | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 08620ab..adc75dd 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,6 @@ all: progs.src *.qc *.qh - qfcc --warn=error --advanced $(CFLAGS) + qfcc --warn=error --code=no-single-cpp --advanced $(CFLAGS) debug: progs.src *.qc *.qh - qfcc --warn=all --code=debug --advanced -DDEBUG $(CFLAGS) + qfcc --warn=all --code=debug,no-single-cpp --advanced -DDEBUG $(CFLAGS) clean: rm -f core *.dat *.pqc *.sym progdefs.h diff --git a/tforttm.qc b/tforttm.qc index df0bf27..340a166 100644 --- a/tforttm.qc +++ b/tforttm.qc @@ -556,7 +556,7 @@ void (entity pl, float topcolor, float bottomcolor) SetPlayerColor = // stuffcmd (pl, "color " + top + " " + bottom + "\n"); }; -void (string key, string value) UserInfoCallback = +float (string key, string value) UserInfoCallback = { // FIXME: remove the cheat poller local string oldval; oldval = infokey (self, key); @@ -589,6 +589,7 @@ void (string key, string value) UserInfoCallback = setinfokey (self, key, value); // RPrint ("[default [" + self.netname + "](" + key + ")(" + value + ")(" + oldval + ")]\n"); } + return 1; }; //=========================================================================