MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / LGSGameMessages

Function LGSGameMessages

Descent3/hudmessage.cpp:1503–1516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1501}
1502
1503void LGSGameMessages(CFILE *fp) {
1504 int n;
1505 char buf[512]; // some level designers can be nuts.
1506
1507 n = (int)cf_ReadShort(fp);
1508
1509 Game_msg_list.reset();
1510 while (n) {
1511 n--;
1512 cf_ReadString(buf, sizeof(buf), fp);
1513 buf[511] = 0;
1514 Game_msg_list.add(buf);
1515 }
1516}
1517
1518// toggles game message console
1519void ToggleGameMessageConsole() {

Callers 1

LoadGameStateFunction · 0.85

Calls 4

cf_ReadShortFunction · 0.85
cf_ReadStringFunction · 0.85
resetMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected