one more problem
This commit is contained in:
parent
818ffd2d62
commit
7a0efddddd
2 changed files with 4 additions and 4 deletions
|
|
@ -399,7 +399,7 @@ enum PickupType
|
|||
// reload state
|
||||
enum ReloadState
|
||||
{
|
||||
RELOAD_NONE = 0, // no reload state currrently
|
||||
RELOAD_NONE = 0, // no reload state currently
|
||||
RELOAD_PRIMARY = 1, // primary weapon reload state
|
||||
RELOAD_SECONDARY = 2 // secondary weapon reload state
|
||||
};
|
||||
|
|
@ -1648,7 +1648,7 @@ extern const char *GetField (const char *string, int fieldId, bool endLine = fal
|
|||
extern const char *FormatBuffer (const char *format, ...);
|
||||
|
||||
extern uint16 GenerateBuildNumber (void);
|
||||
extern const Vector &GetEntityOrigin (edict_t *ent);
|
||||
extern Vector GetEntityOrigin (edict_t *ent);
|
||||
|
||||
extern void FreeLibraryMemory (void);
|
||||
extern void RoundInit (void);
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ bool IsVisible (const Vector &origin, edict_t *ent)
|
|||
return true; // line of sight is valid.
|
||||
}
|
||||
|
||||
const Vector &GetEntityOrigin (edict_t *ent)
|
||||
Vector GetEntityOrigin (edict_t *ent)
|
||||
{
|
||||
// this expanded function returns the vector origin of a bounded entity, assuming that any
|
||||
// entity that has a bounding box has its center at the center of the bounding box itself.
|
||||
|
|
@ -145,7 +145,7 @@ const Vector &GetEntityOrigin (edict_t *ent)
|
|||
return nullvec;
|
||||
|
||||
if (ent->v.origin == nullvec)
|
||||
return ent->v.absmin + (ent->v.size * 0.5);
|
||||
return ent->v.absmin + ent->v.size * 0.5;
|
||||
|
||||
return ent->v.origin;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue