fixed dyneyeheight inheritance

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2835 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-10-05 09:30:06 +00:00
parent 48f5a42db3
commit 4f58460e0a
+1 -1
View File
@@ -355,7 +355,7 @@ struct playerent : dynent, playerstate
int spectatemode, followplayercn;
int eardamagemillis;
int respawnoffset, lastteamchange;
virtual float dyneyeheight() { return (state==CS_DEAD || state==CS_SPECTATE) && spectatemode==SM_FLY ? 1.0f : physent::dyneyeheight(); }
virtual float dyneyeheight() const { return (state==CS_DEAD || state==CS_SPECTATE) && spectatemode==SM_FLY ? 1.0f : physent::dyneyeheight(); }
bool allowmove() { return state!=CS_DEAD || spectatemode==SM_FLY; }
weapon *weapons[NUMGUNS];