no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@979 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-04-26 20:09:57 +00:00
parent 8814ec9ccf
commit edd181435d
4 changed files with 110 additions and 68 deletions
+3 -10
View File
@@ -47,16 +47,9 @@ void conoutf(const char *s, ...)
s_sprintfdv(sf, s);
puts(sf);
s = sf;
int n = 0, visible;
while((visible = text_visible(s, VIRTW*2-2*CONSPAD-2*FONTH/3))) // cut strings to fit on screen
{
const char *newline = (const char *)memchr(s, '\n', visible);
if(newline) visible = newline+1-s;
string t;
s_strncpy(t, s, visible+1);
conline(t, n++!=0);
s += visible;
}
vector<char *> &lines = text_block(s, VIRTW*2-2*CONSPAD-2*FONTH/3);
loopv(lines) conline(lines[i], i!=0);
lines.deletecontentsa();
}
bool fullconsole = false;