set "embody" as default spect mode, more convenient spawning in "fly" mode

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1886 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-05-06 19:01:34 +00:00
parent ae91a2bcc9
commit 558a59338b
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -851,6 +851,13 @@ void spectate()
{
if(player1->state==CS_ALIVE) return;
showscores(false);
if(player1->spectating != SM_NONE && players.inrange(player1->followplayercn))
{
// set spectator location to last followed player
playerent *f = players[player1->followplayercn];
player1->o = f->o;
player1->yaw = f->yaw;
}
player1->spectating = SM_FLY;
}