missed some parenthesis, caused some creating problems

This commit is contained in:
Cracker64 2010-12-19 00:51:25 -05:00
parent 2dad930818
commit ee4bb84395

View File

@ -185,11 +185,31 @@ int try_move(int i, int x, int y, int nx, int ny)
if((r&0xFF)==PT_VOID) if((r&0xFF)==PT_VOID)
{ {
if(parts[i].type == PT_STKM)
{
death = 1;
isplayer = 0;
}
if(parts[i].type == PT_STKM2)
{
death2 = 1;
isplayer2 = 0;
}
parts[i].type=PT_NONE; parts[i].type=PT_NONE;
return 0; return 0;
} }
if((r&0xFF)==PT_BHOL) if((r&0xFF)==PT_BHOL)
{ {
if(parts[i].type == PT_STKM)
{
death = 1;
isplayer = 0;
}
if(parts[i].type == PT_STKM2)
{
death2 = 1;
isplayer2 = 0;
}
parts[i].type=PT_NONE; parts[i].type=PT_NONE;
if(!legacy_enable) if(!legacy_enable)
{ {
@ -494,7 +514,7 @@ inline int create_part(int p, int x, int y, int t)
if(p==-1)//creating from anything but brush if(p==-1)//creating from anything but brush
{ {
if(pmap[y][x]) if(pmap[y][x])
if(pmap[y][x]&0xFF!=PT_SPAWN&&pmap[y][x]&0xFF!=PT_SPAWN2) if((pmap[y][x]&0xFF)!=PT_SPAWN&&(pmap[y][x]&0xFF)!=PT_SPAWN2)
if(t!=PT_STKM&&t!=PT_STKM2) if(t!=PT_STKM&&t!=PT_STKM2)
return -1; return -1;
if(pfree == -1) if(pfree == -1)