Fix Item Sense not working after map change.

This commit is contained in:
Mari the Deer 2020-08-16 17:39:19 +02:00
commit 2ec0a9f060
2 changed files with 1 additions and 5 deletions

View file

@ -1,2 +1,2 @@
[default]
SWWM_MODVER="\chSWWM \cwGZ\c- r486 (Sun 16 Aug 16:27:44 CEST 2020)";
SWWM_MODVER="\chSWWM \cwGZ\c- r486 (Sun 16 Aug 17:39:19 CEST 2020)";

View file

@ -54,7 +54,6 @@ Class Demolitionist : PlayerPawn
SWWMItemSense itemsense;
int itemsense_cnt;
int lastsense;
Default
{
@ -343,9 +342,6 @@ Class Demolitionist : PlayerPawn
}
void SenseItems()
{
if ( level.maptime < lastsense+5 )
return;
lastsense = level.maptime;
let thesight = FindInventory("Omnisight");
let bt = BlockThingsIterator.Create(self,1200);
while ( bt.Next() )