*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1199 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -134,7 +134,7 @@ void text_block(const char *str, int max, vector<char *> &lines)
|
||||
{
|
||||
if(!str) return;
|
||||
int visible;
|
||||
while((visible = max ? text_visible(str, max) : strlen(str)))
|
||||
while((visible = max ? text_visible(str, max) : (int)strlen(str)))
|
||||
{
|
||||
const char *newline = (const char *)memchr(str, '\n', visible);
|
||||
if(newline) visible = newline+1-str;
|
||||
|
||||
@@ -832,7 +832,7 @@ void process(ENetPacket *packet, int sender, int chan) // sender may be -1
|
||||
|
||||
#define QUEUE_MSG { if(cl->type==ST_TCPIP) while(curmsg<p.length()) cl->messages.add(p.buf[curmsg++]); }
|
||||
#define QUEUE_INT(n) { if(cl->type==ST_TCPIP) { curmsg = p.length(); ucharbuf buf = cl->messages.reserve(5); putint(buf, n); cl->messages.addbuf(buf); } }
|
||||
#define QUEUE_STR(text) { if(cl->type==ST_TCPIP) { curmsg = p.length(); ucharbuf buf = cl->messages.reserve(2*strlen(text)+1); sendstring(text, buf); cl->messages.addbuf(buf); } }
|
||||
#define QUEUE_STR(text) { if(cl->type==ST_TCPIP) { curmsg = p.length(); ucharbuf buf = cl->messages.reserve(2*(int)strlen(text)+1); sendstring(text, buf); cl->messages.addbuf(buf); } }
|
||||
|
||||
int curmsg;
|
||||
while((curmsg = p.length()) < p.maxlen) switch(type = checktype(getint(p), cl))
|
||||
|
||||
@@ -61,7 +61,7 @@ bool fileexists(const char *path, const char *mode)
|
||||
|
||||
bool createdir(const char *path)
|
||||
{
|
||||
int len = strlen(path);
|
||||
size_t len = strlen(path);
|
||||
if(path[len-1]==PATHDIV)
|
||||
{
|
||||
static string strip;
|
||||
@@ -77,7 +77,7 @@ bool createdir(const char *path)
|
||||
static void fixdir(char *dir)
|
||||
{
|
||||
path(dir);
|
||||
int len = strlen(dir);
|
||||
size_t len = strlen(dir);
|
||||
if(dir[len-1]!=PATHDIV)
|
||||
{
|
||||
dir[len] = PATHDIV;
|
||||
|
||||
Reference in New Issue
Block a user