MCPcopy Create free account
hub / github.com/diasurgical/devilution / plrmsg_delay

Function plrmsg_delay

Source/plrmsg.cpp:10–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8const char text_color_from_player_num[MAX_PLRS + 1] = { COL_WHITE, COL_WHITE, COL_WHITE, COL_WHITE, COL_GOLD };
9
10void plrmsg_delay(BOOL delay)
11{
12 int i;
13 _plrmsg *pMsg;
14 static DWORD plrmsg_ticks;
15
16 if (delay) {
17 plrmsg_ticks = -SDL_GetTicks();
18 return;
19 }
20
21 plrmsg_ticks += SDL_GetTicks();
22 pMsg = plr_msgs;
23 for (i = 0; i < PMSG_COUNT; i++, pMsg++)
24 pMsg->time += plrmsg_ticks;
25}
26
27char *ErrorPlrMsg(const char *pszMsg)
28{

Callers 1

ShowProgressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected