*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1472 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+3
-1
@@ -95,7 +95,6 @@ struct physent
|
||||
float maxspeed; // cubes per second, 24 for player
|
||||
int timeinair; // used for fake gravity
|
||||
float radius, eyeheight, aboveeye; // bounding box size
|
||||
virtual float dyneyeheight() { return crouching ? eyeheight*3.0f/4.0f : eyeheight; }
|
||||
bool inwater;
|
||||
bool onfloor, onladder, jumpnext, crouching;
|
||||
char move, strafe;
|
||||
@@ -106,6 +105,7 @@ struct physent
|
||||
{
|
||||
reset();
|
||||
}
|
||||
virtual ~physent() {}
|
||||
|
||||
void reset()
|
||||
{
|
||||
@@ -114,6 +114,8 @@ struct physent
|
||||
timeinair = 0;
|
||||
onfloor = onladder = inwater = jumpnext = crouching = false;
|
||||
}
|
||||
|
||||
virtual float dyneyeheight() { return crouching ? eyeheight*3.0f/4.0f : eyeheight; }
|
||||
};
|
||||
|
||||
struct dynent : physent // animated ent
|
||||
|
||||
Reference in New Issue
Block a user