no pickup for spectators

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1487 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-12-25 15:54:59 +00:00
parent 0aa7578eb5
commit bedf989f49
10 changed files with 7 additions and 11 deletions
-1
View File
@@ -11,7 +11,6 @@
//
#include "pch.h"
#include "cube.h"
#include "bot.h"
#ifdef AC_CUBE
-1
View File
@@ -9,7 +9,6 @@
#include "pch.h"
#include "cube.h"
#include "bot.h"
#ifdef AC_CUBE
-1
View File
@@ -11,7 +11,6 @@
//
#include "pch.h"
#include "cube.h"
#include "bot.h"
vector<botent *> bots;
-1
View File
@@ -11,7 +11,6 @@
// Code of CBot - Start
#include "pch.h"
#include "cube.h"
#include "bot.h"
extern weaponinfo_s WeaponInfoTable[MAX_WEAPONS];
-1
View File
@@ -11,7 +11,6 @@
//
#include "pch.h"
#include "cube.h"
#include "bot.h"
// Function code by PMB - Begin
-1
View File
@@ -8,7 +8,6 @@
//
#include "pch.h"
#include "cube.h"
#include "bot.h"
vec v_debuggoal = g_vecZero;
-1
View File
@@ -11,7 +11,6 @@
//
#include "pch.h"
#include "cube.h"
#include "bot.h"
+1 -2
View File
@@ -809,8 +809,7 @@ void followplayer(int i)
void toggledeathcam()
{
if(player1->spectating == SM_NONE) showscores(false); // disable once
showscores(false);
if(player1->spectating == SM_FOLLOWPLAYER) followplayer();
else
{
+1 -1
View File
@@ -138,7 +138,7 @@ void trypickup(int n, playerent *d)
void checkitems(playerent *d)
{
if(editmode) return;
if(editmode || d->state!=CS_ALIVE) return;
d->onladder = false;
float eyeheight = d->dyneyeheight();
loopv(ents)
+5 -1
View File
@@ -496,7 +496,11 @@ void jumpn(bool on)
if(intermission) return;
if(player1->state==CS_DEAD || player1->state==CS_SPECTATE)
{
if(on) player1->spectating = SM_FLY;
if(on)
{
showscores(false);
player1->spectating = SM_FLY;
}
}
else if(player1->crouching) return;
else player1->jumpnext = on;