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

Function ErrorPlrMsg

Source/plrmsg.cpp:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27char *ErrorPlrMsg(const char *pszMsg)
28{
29 char *result;
30 _plrmsg *pMsg = &plr_msgs[plr_msg_slot];
31 plr_msg_slot = (plr_msg_slot + 1) & (PMSG_COUNT - 1);
32 pMsg->player = MAX_PLRS;
33 pMsg->time = SDL_GetTicks();
34 result = strncpy(pMsg->str, pszMsg, sizeof(pMsg->str));
35 pMsg->str[sizeof(pMsg->str) - 1] = '\0';
36 return result;
37}
38
39size_t EventPlrMsg(const char *pszFmt, ...)
40{

Callers 3

msg_errorfFunction · 0.85
multi_handle_eventsFunction · 0.85
DrawInvMsgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected