Merge pull request #14 from Soldy/master

error during compiling the code #13
This commit is contained in:
Yamagi 2020-06-02 08:47:38 +02:00 committed by GitHub
commit 40fb2366d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -745,8 +745,8 @@ void zboss_reelInGraaple2(edict_t *self)
vec3_t vec, dir; vec3_t vec, dir;
float length; float length;
edict_t *enemy; edict_t *enemy;
vec3_t hookoffset; vec3_t hookoffset = {-5, -24, 34};
vec3_t forward, right; vec3_t forward, right;
if (!self) if (!self)
{ {
@ -754,7 +754,6 @@ void zboss_reelInGraaple2(edict_t *self)
} }
enemy = self->laser->enemy; enemy = self->laser->enemy;
hookoffset = {-5, -24, 34};
AngleVectors (self->s.angles, forward, right, NULL); AngleVectors (self->s.angles, forward, right, NULL);
G_ProjectSource(self->s.origin, hookoffset, forward, right, vec); G_ProjectSource(self->s.origin, hookoffset, forward, right, vec);