Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/kk_pr'
Browse files Browse the repository at this point in the history
  • Loading branch information
Doomhack committed Jun 13, 2020
2 parents 6e75da4 + e0708b5 commit a8163a2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
3 changes: 3 additions & 0 deletions include/d_englsh.h
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@
#define STSTR_ROCKETON "Enemy Rockets On"
#define STSTR_ROCKETOFF "Enemy Rockets Off"

#define STSTR_FPSON "FPS Counter On"
#define STSTR_FPSOFF "FPS Counter Off"

/* f_finale.c */

#define E1TEXT \
Expand Down
6 changes: 2 additions & 4 deletions source/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ const boolean nodrawers = false;

static const char* timedemo = NULL;//"demo1";

static const boolean show_fps = false;

/*
* D_PostEvent - Event handling
*
Expand Down Expand Up @@ -287,7 +285,7 @@ static void D_DoomLoop(void)
D_Display();


if(show_fps)
if(_g->fps_show)
{
D_UpdateFPS();
}
Expand Down Expand Up @@ -746,7 +744,7 @@ static void D_DoomMainSetup(void)

_g->idmusnum = -1; //jff 3/17/98 insure idmus number is blank

_g->fps_show = show_fps;
_g->fps_show = false;

I_InitGraphics();

Expand Down
14 changes: 14 additions & 0 deletions source/m_cheat.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ static void cheat_map(void);
static void cheat_goggles(void);
static void cheat_exit(void);
static void cheat_rockets(void);
static void cheat_fps(void);



Expand Down Expand Up @@ -49,6 +50,7 @@ static const c_cheat cheat_def[] =

//Because Goldeneye!
{"Enemy Rockets", CHEAT_SEQ(KEYD_A, KEYD_B, KEYD_L, KEYD_R, KEYD_R, KEYD_L, KEYD_B, KEYD_A), cheat_rockets},
{"FPS Counter Ammo",CHEAT_SEQ(KEYD_A, KEYD_B, KEYD_L, KEYD_UP, KEYD_DOWN, KEYD_B, KEYD_LEFT, KEYD_LEFT), cheat_fps},
};

static const unsigned int num_cheats = sizeof(cheat_def) / sizeof (c_cheat);
Expand Down Expand Up @@ -252,3 +254,15 @@ static void cheat_rockets()
_g->player.message = STSTR_ROCKETOFF;
}
}

static void cheat_fps()
{
_g->fps_show = !_g->fps_show;
if(_g->fps_show)
{
_g->player.message = STSTR_FPSON;
}else
{
_g->player.message = STSTR_FPSOFF;
}
}

1 comment on commit a8163a2

@Kippykip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, there was another glitch I found later on (I swear TNT/Plutonia detection used to work but now I have to make this change)
Kippykip@815fb95

Please sign in to comment.