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

Function EventPlrMsg

Source/plrmsg.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39size_t EventPlrMsg(const char *pszFmt, ...)
40{
41 _plrmsg *pMsg;
42 va_list va;
43
44 va_start(va, pszFmt);
45 pMsg = &plr_msgs[plr_msg_slot];
46 plr_msg_slot = (plr_msg_slot + 1) & (PMSG_COUNT - 1);
47 pMsg->player = MAX_PLRS;
48 pMsg->time = SDL_GetTicks();
49 vsprintf(pMsg->str, pszFmt, va);
50 va_end(va);
51 return strlen(pMsg->str);
52}
53
54void SendPlrMsg(int pnum, const char *pszStr)
55{

Callers 3

On_PLAYER_JOINLEVELFunction · 0.85
multi_player_left_msgFunction · 0.85
recv_plrinfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected