mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 20:12:50 +02:00
fix DRAY
This commit is contained in:
@@ -100,8 +100,10 @@ int Element_DRAY::update(UPDATE_FUNC_ARGS)
|
|||||||
sim->delete_part(xCopyTo, yCopyTo);
|
sim->delete_part(xCopyTo, yCopyTo);
|
||||||
if (type == PT_SPRK) //hack
|
if (type == PT_SPRK) //hack
|
||||||
p = sim->create_part(-1, xCopyTo, yCopyTo, PT_METL);
|
p = sim->create_part(-1, xCopyTo, yCopyTo, PT_METL);
|
||||||
else
|
else if (type)
|
||||||
p = sim->create_part(-1, xCopyTo, yCopyTo, type);
|
p = sim->create_part(-1, xCopyTo, yCopyTo, type);
|
||||||
|
else
|
||||||
|
continue;
|
||||||
if (p >= 0)
|
if (p >= 0)
|
||||||
{
|
{
|
||||||
if (type == PT_SPRK)
|
if (type == PT_SPRK)
|
||||||
|
Reference in New Issue
Block a user