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

Function SetSpeedSpell

Source/control.cpp:423–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423void SetSpeedSpell(int slot)
424{
425 int i;
426
427 if (pSpell != SPL_INVALID) {
428 for (i = 0; i < 4; ++i) {
429 if (plr[myplr]._pSplHotKey[i] == pSpell && plr[myplr]._pSplTHotKey[i] == pSplType)
430 plr[myplr]._pSplHotKey[i] = SPL_INVALID;
431 }
432 plr[myplr]._pSplHotKey[slot] = pSpell;
433 plr[myplr]._pSplTHotKey[slot] = pSplType;
434 }
435}
436
437void ToggleSpell(int slot)
438{

Callers 1

PressKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected