From f84197f44ac7dddb0c07c2f7274b899504668c1e Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 11 Oct 2008 18:37:06 +0000 Subject: [PATCH] reset eyeheight on respawn git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2944 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/entity.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/entity.h b/source/src/entity.h index 31759bee..b4eca33b 100644 --- a/source/src/entity.h +++ b/source/src/entity.h @@ -357,7 +357,7 @@ struct playerent : dynent, playerstate { type = ENT_PLAYER; name[0] = team[0] = 0; - eyeheight = maxeyeheight = 4.5f; + maxeyeheight = 4.5f; aboveeye = 0.7f; radius = 1.1f; maxspeed = 16.0f; @@ -408,6 +408,7 @@ struct playerent : dynent, playerstate spectatemode = SM_NONE; followplayercn = -1; // flowtron : default to non-valid cn eardamagemillis = 0; + eyeheight = maxeyeheight; } void spawnstate(int gamemode)