From b6fec07e9afbc44530226dc5142c330039ce3bd1 Mon Sep 17 00:00:00 2001 From: driAn Date: Sun, 18 May 2008 18:05:09 +0000 Subject: [PATCH] only fly-spectate in bot modes, because they walk too ugly for 1st person git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2042 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 01df9acd..1f00fc91 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -907,10 +907,14 @@ void spectate(int mode) // set new spect mode void togglespect() // cycle through all spectating modes { - int mode; - if(player1->spectatemode==SM_NONE) mode = SM_FOLLOW1ST; // start with 1st person spect - else mode = SM_FOLLOW1ST + (((player1->spectatemode-1) % (SM_NUM-SM_FOLLOW1ST))); - spectate(mode); + if(m_botmode) spectate(SM_FLY); + else + { + int mode; + if(player1->spectatemode==SM_NONE) mode = SM_FOLLOW1ST; // start with 1st person spect + else mode = SM_FOLLOW1ST + (((player1->spectatemode-1) % (SM_NUM-SM_FOLLOW1ST))); + spectate(mode); + } } void changefollowplayer(int shift)