mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-11 05:01:09 +00:00
Merge branch 'master' of https://github.com/coelckers/gzdoom
This commit is contained in:
commit
730f64e447
3 changed files with 5 additions and 1 deletions
|
@ -440,6 +440,7 @@ void FMapInfoParser::ParseGameInfo()
|
||||||
GAMEINFOKEY_STRING(statusscreen_dm, "statscreen_dm")
|
GAMEINFOKEY_STRING(statusscreen_dm, "statscreen_dm")
|
||||||
GAMEINFOKEY_TWODOUBLES(normforwardmove, "normforwardmove")
|
GAMEINFOKEY_TWODOUBLES(normforwardmove, "normforwardmove")
|
||||||
GAMEINFOKEY_TWODOUBLES(normsidemove, "normsidemove")
|
GAMEINFOKEY_TWODOUBLES(normsidemove, "normsidemove")
|
||||||
|
GAMEINFOKEY_BOOL(nomergepickupmsg, "nomergepickupmsg")
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -206,6 +206,7 @@ struct gameinfo_t
|
||||||
double normforwardmove[2];
|
double normforwardmove[2];
|
||||||
double normsidemove[2];
|
double normsidemove[2];
|
||||||
int fullscreenautoaspect = 0;
|
int fullscreenautoaspect = 0;
|
||||||
|
bool nomergepickupmsg;
|
||||||
|
|
||||||
const char *GetFinalePage(unsigned int num) const;
|
const char *GetFinalePage(unsigned int num) const;
|
||||||
};
|
};
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
#include "d_player.h"
|
#include "d_player.h"
|
||||||
#include "vm.h"
|
#include "vm.h"
|
||||||
#include "g_levellocals.h"
|
#include "g_levellocals.h"
|
||||||
|
#include "gi.h"
|
||||||
|
|
||||||
EXTERN_CVAR(Bool, sv_unlimited_pickup)
|
EXTERN_CVAR(Bool, sv_unlimited_pickup)
|
||||||
|
|
||||||
|
@ -55,7 +56,8 @@ static FString StaticLastMessage;
|
||||||
|
|
||||||
void PrintPickupMessage(bool localview, const FString &str)
|
void PrintPickupMessage(bool localview, const FString &str)
|
||||||
{
|
{
|
||||||
if (str.IsNotEmpty() && localview && (StaticLastMessageTic != gametic || StaticLastMessage.Compare(str)))
|
// [MK] merge identical messages on same tic unless disabled in gameinfo
|
||||||
|
if (str.IsNotEmpty() && localview && (gameinfo.nomergepickupmsg || StaticLastMessageTic != gametic || StaticLastMessage.Compare(str)))
|
||||||
{
|
{
|
||||||
StaticLastMessageTic = gametic;
|
StaticLastMessageTic = gametic;
|
||||||
StaticLastMessage = str;
|
StaticLastMessage = str;
|
||||||
|
|
Loading…
Reference in a new issue