Should return out after changing type.

This commit is contained in:
cracker64 2012-06-07 14:03:20 -03:00
parent 21cfbdae71
commit bacde18e33

View File

@ -35,7 +35,10 @@ int update_EXOT(UPDATE_FUNC_ARGS) {
if (parts[i].tmp>245) if (parts[i].tmp>245)
if (1>rand()%500) if (1>rand()%500)
if ((r&0xFF)!=PT_EXOT && (r&0xFF)!=PT_BREL && (r&0xFF)!=PT_DMND && (r&0xFF)!=PT_CLNE && (r&0xFF)!=PT_PRTI && (r&0xFF)!=PT_PRTO && (r&0xFF)!=PT_PCLN && (r&0xFF)!=PT_PHOT && (r&0xFF)!=PT_VOID && (r&0xFF)!=PT_NBHL && (r&0xFF)!=PT_WARP) if ((r&0xFF)!=PT_EXOT && (r&0xFF)!=PT_BREL && (r&0xFF)!=PT_DMND && (r&0xFF)!=PT_CLNE && (r&0xFF)!=PT_PRTI && (r&0xFF)!=PT_PRTO && (r&0xFF)!=PT_PCLN && (r&0xFF)!=PT_PHOT && (r&0xFF)!=PT_VOID && (r&0xFF)!=PT_NBHL && (r&0xFF)!=PT_WARP)
{
create_part(i, x, y, parts[r>>8].type); create_part(i, x, y, parts[r>>8].type);
return 0;
}
} }
parts[i].tmp--; parts[i].tmp--;
parts[i].tmp2--; parts[i].tmp2--;
@ -48,6 +51,7 @@ int update_EXOT(UPDATE_FUNC_ARGS) {
parts[i].tmp2 = 6000; parts[i].tmp2 = 6000;
part_change_type(i, x, y, PT_WARP); part_change_type(i, x, y, PT_WARP);
parts[i].temp = 10000; parts[i].temp = 10000;
return 0;
} }
else else
pv[y/CELL][x/CELL] += (parts[i].tmp2*CFDS)/160000; pv[y/CELL][x/CELL] += (parts[i].tmp2*CFDS)/160000;
@ -55,6 +59,7 @@ int update_EXOT(UPDATE_FUNC_ARGS) {
{ {
part_change_type(i, x, y, PT_WARP); part_change_type(i, x, y, PT_WARP);
parts[i].tmp2 = 6000; parts[i].tmp2 = 6000;
return 0;
} }
if (parts[i].tmp2>100) if (parts[i].tmp2>100)
{ {