| 385 | hudmessages() : consolebuffer<hudline>(20) {} |
| 386 | |
| 387 | void addline(const char *sf) |
| 388 | { |
| 389 | if(conlines.length() && conlines[0].type&HUDMSG_OVERWRITE) |
| 390 | { |
| 391 | conlines[0].millis = totalmillis; |
| 392 | conlines[0].type = HUDMSG_INFO; |
| 393 | copystring(conlines[0].line, sf); |
| 394 | } |
| 395 | else consolebuffer<hudline>::addline(sf, totalmillis); |
| 396 | } |
| 397 | void editline(int type, const char *sf) |
| 398 | { |
| 399 | if(conlines.length() && ((conlines[0].type&HUDMSG_TYPE)==(type&HUDMSG_TYPE) || conlines[0].type&HUDMSG_OVERWRITE)) |
no test coverage detected