- added an option to disable the pickup screen flash.
This commit is contained in:
parent
15cbf4bae6
commit
2d320a2e86
3 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue