diff --git a/source/src/command.cpp b/source/src/command.cpp index 44f5b3ad..0ff43312 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -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); diff --git a/source/src/editing.cpp b/source/src/editing.cpp index 64d4f7eb..469ec9ee 100644 --- a/source/src/editing.cpp +++ b/source/src/editing.cpp @@ -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; } diff --git a/source/src/menus.cpp b/source/src/menus.cpp index 60185f3c..f7e8e882 100644 --- a/source/src/menus.cpp +++ b/source/src/menus.cpp @@ -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; } diff --git a/source/src/protocol.cpp b/source/src/protocol.cpp index 78cf2d3b..9e9105fb 100644 --- a/source/src/protocol.cpp +++ b/source/src/protocol.cpp @@ -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)