- added an option to disable the pickup screen flash.

This commit is contained in:
Christoph Oelckers 2016-10-05 09:59:19 +02:00
commit 2d320a2e86
3 changed files with 5 additions and 1 deletions

View file

@ -23,6 +23,8 @@
#include "serializer.h"
static FRandom pr_restore ("RestorePos");
CVAR(Bool, r_pickupflash, true, CVAR_ARCHIVE);
IMPLEMENT_CLASS(PClassInventory)
@ -1089,7 +1091,7 @@ void AInventory::Touch (AActor *toucher)
if (player != NULL)
{
PlayPickupSound (player->mo);
if (!(ItemFlags & IF_NOSCREENFLASH))
if (!(ItemFlags & IF_NOSCREENFLASH) && r_pickupflash)
{
player->bonuscount = BONUSADD;
}