| 421 | } |
| 422 | |
| 423 | void 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 | |
| 437 | void ToggleSpell(int slot) |
| 438 | { |