TPT: Fix the bug where gel didn't transfer water from sponge. 0cf636ad24
This commit is contained in:
parent
1ccdc1dc12
commit
583bf2a091
@ -68,6 +68,12 @@ int Element_GEL::update(UPDATE_FUNC_ARGS)
|
||||
sim->kill_part(r>>8);
|
||||
}
|
||||
|
||||
if ((r&0xFF)==PT_SPNG && parts[i].tmp<100 && ((parts[r>>8].life+1)>parts[i].tmp))
|
||||
{
|
||||
parts[r>>8].life--;
|
||||
parts[i].tmp++;
|
||||
}
|
||||
|
||||
char gel = 0;
|
||||
if ((r&0xFF)==PT_GEL)
|
||||
gel = 1;
|
||||
|
Reference in New Issue
Block a user