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

Function msg_errorf

Source/msg.cpp:1372–1387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1370}
1371
1372void msg_errorf(const char *pszFmt, ...)
1373{
1374 static DWORD msg_err_timer;
1375 DWORD ticks;
1376 char msg[256];
1377 va_list va;
1378
1379 va_start(va, pszFmt);
1380 ticks = SDL_GetTicks();
1381 if (ticks - msg_err_timer >= 5000) {
1382 msg_err_timer = ticks;
1383 vsprintf(msg, pszFmt, va);
1384 ErrorPlrMsg(msg);
1385 }
1386 va_end(va);
1387}
1388
1389DWORD On_GOTOGETITEM(TCmd *pCmd, int pnum)
1390{

Callers 8

On_SBSPELLFunction · 0.85
On_SPELLXYDFunction · 0.85
On_SPELLXYFunction · 0.85
On_TSPELLXYFunction · 0.85
On_SPELLIDFunction · 0.85
On_SPELLPIDFunction · 0.85
On_TSPELLIDFunction · 0.85
On_TSPELLPIDFunction · 0.85

Calls 1

ErrorPlrMsgFunction · 0.85

Tested by

no test coverage detected