cleanup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4345 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user