git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4345 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-04-15 16:12:22 +00:00
parent d54a6fa7d8
commit 39d3868406
4 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -1080,7 +1080,7 @@ void currentserver(int i)
s_strcpy(r, statenames[curpeer->state]);
break; // 5 == Connected (compare ../enet/include/enet/enet.h +165)
}
default: // IP PORT
default: // was HOST:PORT & IP - but as speed-up just IP & PORT
{
uchar *ip = (uchar *)&curpeer->address.host;
s_sprintf(r)("%d.%d.%d.%d %d", ip[0], ip[1], ip[2], ip[3], curpeer->address.port);
+1 -1
View File
@@ -43,7 +43,7 @@ void toggleedit(bool force)
}
else
{
//player1->health = 100; // it's an illusion anyway, the server remembers the value - grenadier found this
//player1->health = 100; // illusion only (client-side) and unwanted anyway (bug found by grenadier)
//put call to clear/restart gamemode
player1->attacking = false;
}
+1 -1
View File
@@ -274,7 +274,7 @@ struct mitemtextinput : mitemtext
virtual int width()
{
int labelw = text_width(text);
int maxw = min(input.max, 15) * text_width("w");
int maxw = min(input.max, 15)*text_width("w"); // w is broadest, not a - but limit to 15*w
return labelw + maxw;
}
-1
View File
@@ -92,7 +92,6 @@ void getstring(char *text, ucharbuf &p, int len)
DEBUGVAR(text);
}
void filtertext(char *dst, const char *src, int whitespace, int len)
{ // whitespace: no whitespace at all (0), blanks only (1), blanks & newline (2)
for(int c = *src; c; c = *++src)