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

Function ClearPlrMsg

Source/plrmsg.cpp:65–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void ClearPlrMsg()
66{
67 int i;
68 _plrmsg *pMsg = plr_msgs;
69 DWORD tick = SDL_GetTicks();
70
71 for (i = 0; i < PMSG_COUNT; i++, pMsg++) {
72 if ((int)(tick - pMsg->time) > 10000)
73 pMsg->str[0] = '\0';
74 }
75}
76
77void InitPlrMsg()
78{

Callers 1

game_logicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected