mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-21 23:45:20 +02:00
Fix infinite loop when trying to detach soap with extra ctype bits set
This commit is contained in:
@@ -31,13 +31,13 @@ int update_SOAP(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
if (parts[i].life<=0)
|
||||
{
|
||||
if ((parts[i].ctype&6) != 6 && parts[i].ctype>1)
|
||||
if ((parts[i].ctype&6) != 6 && (parts[i].ctype&6))
|
||||
{
|
||||
int target;
|
||||
|
||||
target = i;
|
||||
|
||||
while((parts[target].ctype&6) != 6 && parts[target].ctype>1)
|
||||
while((parts[target].ctype&6) != 6 && (parts[target].ctype&6))
|
||||
{
|
||||
if ((parts[target].ctype&2) == 2)
|
||||
{
|
||||
|
Reference in New Issue
Block a user