You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
delete() - Damages the object, 1: object's ID, 2: magnifyDamage multiplier, without 2 the object explodes
so it looks like second parameter should only increase/decrease amount of damage to object. But values >1 doesn't just do incredible damage, instead it results in buildings flying into space, reversed build animation, or game just crash because, for example, it gives up trying to (probably) drown a BotFactory:
Assertion failed!
Program: C:\Program Files (x86)\colobot\wuasne\colobot.exe
File: C:/Users/student/repo/colobot/src/object/old_object.cpp, Line 445
Expression: type != DestructionType::Drowned || m_type == OBJECT_HUMAN
Either we should improve documentation to match it to actual effects, or fix those crazy behaviors. In any case, this function shouldn't crash whole game.
The text was updated successfully, but these errors were encountered:
tomangelo2
changed the title
destroy(); behaviour is quite weird
delete(); behaviour is quite weird
Jan 17, 2018
Official documentation states:
so it looks like second parameter should only increase/decrease amount of damage to object. But values >1 doesn't just do incredible damage, instead it results in buildings flying into space, reversed build animation, or game just crash because, for example, it gives up trying to (probably) drown a BotFactory:
Either we should improve documentation to match it to actual effects, or fix those crazy behaviors. In any case, this function shouldn't crash whole game.
The text was updated successfully, but these errors were encountered: