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; }; //=========================================================================