MCPcopy Create free account
hub / github.com/assaultcube/AC / addline

Method addline

source/src/renderhud.cpp:387–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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))

Callers 2

hudoutfFunction · 0.45
hudonlyfFunction · 0.45

Calls 2

copystringFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected