mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-13 09:52:01 -04:00
fix compile errors in linux
This commit is contained in:
parent
14d2aef34e
commit
3f23c65b8b
1 changed files with 2 additions and 15 deletions
15
game/inv.c
15
game/inv.c
|
@ -479,19 +479,6 @@ int find_item(short *place,int mask)
|
|||
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) {
|
||||
int new_count = count_items_total(picked_items);
|
||||
if (new_count == 0) return;
|
||||
|
@ -519,7 +506,7 @@ void push_item(int sect,int pos,const short *picked_item)
|
|||
|
||||
if (s==S_DIRA || ISTELEPORTSECT(sect) || s == S_SCHODY)
|
||||
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);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue