| 1815 | COMMANDF(spectatemode, "i", (int *mode) { spectatemode(*mode); }); |
| 1816 | |
| 1817 | void togglespect() // cycle through all spectating modes |
| 1818 | { |
| 1819 | int mode; |
| 1820 | if(player1->spectatemode==SM_NONE) mode = SM_FOLLOW1ST; // start with 1st person spect |
| 1821 | else mode = SM_FOLLOW1ST + ((player1->spectatemode - SM_FOLLOW1ST + 1) % ((smoverviewflyforbidden() ? SM_FLY : SM_NUM/*SM_OVERVIEW*/)-SM_FOLLOW1ST)); // replace SM_OVERVIEW by SM_NUM to enable overview mode |
| 1822 | spectatemode(mode); |
| 1823 | } |
| 1824 | COMMAND(togglespect, ""); |
| 1825 | |
| 1826 | void changefollowplayer(int *shift) |
no test coverage detected