Fix the bug where gel didn't transfer water from sponge.
This commit is contained in:
parent
c5b9b8d28a
commit
0cf636ad24
@ -35,6 +35,12 @@ int update_GEL(UPDATE_FUNC_ARGS) {
|
||||
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