fix compile errors in linux

This commit is contained in:
Ondřej Novák 2025-05-03 17:27:43 +02:00
parent 14d2aef34e
commit 3f23c65b8b

View file

@ -479,19 +479,6 @@ int find_item(short *place,int mask)
return lastitem; return lastitem;
} }
static int lastsector;
static char ValidateSector(word sector, void *_)
{
int pp=map_sectors[sector].sector_type;
if (pp==S_NORMAL || pp==S_SMER || pp==S_LEAVE || pp==S_FLT_SMER)
{
lastsector=sector;
return 1;
}
return 0;
}
void push_to_destroyed_items(const short *picked_items) { void push_to_destroyed_items(const short *picked_items) {
int new_count = count_items_total(picked_items); int new_count = count_items_total(picked_items);
if (new_count == 0) return; if (new_count == 0) return;
@ -515,11 +502,11 @@ void push_item(int sect,int pos,const short *picked_item)
int tc; int tc;
short *p; short *p;
char s = map_sectors[sect].sector_type; char s = map_sectors[sect].sector_type;
if (s==S_DIRA || ISTELEPORTSECT(sect) || s == S_SCHODY) if (s==S_DIRA || ISTELEPORTSECT(sect) || s == S_SCHODY)
sect=map_sectors[sect].sector_tag; sect=map_sectors[sect].sector_tag;
if (sect==0 || s==S_VODA || s == S_LAVA || s == S_SSMRT) { if (sect==0 || s==S_VODA || s == S_LAVA || s == S_SSMRT || s == S_LODKA) {
push_to_destroyed_items(picked_item); push_to_destroyed_items(picked_item);
return; return;
} }