From abe352c88f2864d3b04044986b53f2b254a77e54 Mon Sep 17 00:00:00 2001 From: driAn Date: Sat, 10 May 2008 20:40:31 +0000 Subject: [PATCH] new cmd: changefollowplayer git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1922 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 66ebcec2..12625c45 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -890,8 +890,14 @@ void togglespect() // cycle through all spectating modes spectate(mode); } +void changefollowplayer(int shift) +{ + findfollowplayer(shift); +} + COMMAND(spectate, ARG_1INT); COMMAND(togglespect, ARG_NONE); +COMMAND(changefollowplayer, ARG_1INT); int isalive() { return player1->state==CS_ALIVE ? 1 : 0; } COMMANDN(alive, isalive, ARG_NONE);