mastermode wip!

coloured messages \fx


git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@729 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-11-25 21:18:31 +00:00
parent b52e9eff96
commit 4c21d09122
11 changed files with 81 additions and 37 deletions
+2 -2
View File
@@ -179,7 +179,7 @@ void trydisconnect()
disconnect(0, !disconnecting);
};
void toserver(char *text) { conoutf("%s:\f %s", player1->name, text); addmsg(SV_TEXT, "rs", text); };
void toserver(char *text) { conoutf("%s:\f0 %s", player1->name, text); addmsg(SV_TEXT, "rs", text); };
void echo(char *text) { conoutf("%s", text); };
void lanconnect()
@@ -383,7 +383,7 @@ void gets2c() // get updates from the server
case ENET_EVENT_TYPE_DISCONNECT:
extern char *disc_reasons[];
if(event.data>DISC_MAXCLIENTS) event.data = DISC_NONE;
if(!disconnecting || event.data) conoutf("\fserver network error, disconnecting (%s) ...", disc_reasons[event.data]);
if(!disconnecting || event.data) conoutf("\f3server network error, disconnecting (%s) ...", disc_reasons[event.data]);
disconnect();
return;