Skip to content

Commit

Permalink
game: use function parameter instead of return function for output fi…
Browse files Browse the repository at this point in the history
…red entity
  • Loading branch information
Aranud committed Nov 8, 2017
1 parent 9d91897 commit 7952bb9
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 87 deletions.
4 changes: 2 additions & 2 deletions src/game/g_local.h
Expand Up @@ -1550,7 +1550,7 @@ void G_PreFilledMissileEntity(gentity_t *ent, int weaponNum, int realWeapon, int
qboolean AccuracyHit(gentity_t *target, gentity_t *attacker); qboolean AccuracyHit(gentity_t *target, gentity_t *attacker);
void CalcMuzzlePoint(gentity_t *ent, int weapon, vec3_t forward, vec3_t right, vec3_t up, vec3_t muzzlePoint); void CalcMuzzlePoint(gentity_t *ent, int weapon, vec3_t forward, vec3_t right, vec3_t up, vec3_t muzzlePoint);
void SnapVectorTowards(vec3_t v, vec3_t to); void SnapVectorTowards(vec3_t v, vec3_t to);
gentity_t *weapon_grenadelauncher_fire(gentity_t *ent); void weapon_grenadelauncher_fire(gentity_t *ent, gentity_t *firedShot);


void G_FadeItems(gentity_t *ent, int modType); void G_FadeItems(gentity_t *ent, int modType);
gentity_t *G_FindSatchel(gentity_t *ent); gentity_t *G_FindSatchel(gentity_t *ent);
Expand Down Expand Up @@ -2738,7 +2738,7 @@ void G_RailBox(vec_t *origin, vec_t *mins, vec_t *maxs, vec_t *color, int index)
typedef struct weapFireFunction_s typedef struct weapFireFunction_s
{ {
weapon_t weapon; weapon_t weapon;
gentity_t *(*fire)(gentity_t * ent); void (*fire)(gentity_t *ent, gentity_t *firedShot);


} weapFireFunction_t; } weapFireFunction_t;


Expand Down

0 comments on commit 7952bb9

Please sign in to comment.