Skip to content

Commit

Permalink
Merge pull request #183 from actionquake/bug/compat-silliness
Browse files Browse the repository at this point in the history
Adjusted jmod menu to avoid compiler warnings/errors
  • Loading branch information
darkshade9 authored Apr 9, 2024
2 parents fccf353 + d810e5d commit d420f64
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/a_team.c
Original file line number Diff line number Diff line change
Expand Up @@ -1111,8 +1111,8 @@ pmenu_t pmitemmenu[] = {
{ "Laser Sight (jmod laser)", PMENU_ALIGN_LEFT, NULL, ToggleLaser },
{ "Slippers (jmod slippers)", PMENU_ALIGN_LEFT, NULL, ToggleSlippers },
{ NULL, PMENU_ALIGN_LEFT, NULL, NULL },
{ "Respawn to Closest Spawn (jmod spawnc)", PMENU_ALIGN_LEFT, NULL, Cmd_GotoPC_f },
{ "Respawn to Random Spawn (jmod spawnp)", PMENU_ALIGN_LEFT, NULL, Cmd_GotoP_f },
{ "Respawn to Closest Spawn (jmod spawnc)", PMENU_ALIGN_LEFT, NULL, Cmd_GotoPC_f_compat },
{ "Respawn to Random Spawn (jmod spawnp)", PMENU_ALIGN_LEFT, NULL, Cmd_GotoP_f_compat },

};

Expand Down
10 changes: 10 additions & 0 deletions source/tng_jump.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,16 @@ void Cmd_Goto_f (edict_t *ent)

}

void Cmd_GotoP_f_compat (edict_t *ent, pmenu_t *p)
{
Cmd_GotoP_f(ent);
}

void Cmd_GotoPC_f_compat (edict_t *ent, pmenu_t *p)
{
Cmd_GotoPC_f(ent);
}

void Cmd_GotoP_f (edict_t *ent)
{
edict_t *spot = NULL;
Expand Down
2 changes: 2 additions & 0 deletions source/tng_jump.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ void Cmd_Jmod_f (edict_t *ent);
void Cmd_PMLCA_f (edict_t *ent);
void Cmd_RHS_f (edict_t *ent);
void Cmd_Goto_f (edict_t *ent);
void Cmd_GotoP_f_compat (edict_t *ent, pmenu_t *p);
void Cmd_GotoPC_f_compat (edict_t *ent, pmenu_t *p);
void Cmd_GotoP_f (edict_t *ent);
void Cmd_GotoPC_f (edict_t *ent);
void Cmd_Clear_f (edict_t *ent);
Expand Down

0 comments on commit d420f64

Please sign in to comment.