Title change_obstacle_type() has to unglue/glue new obstacle, not only change its type
Priority important Status open
Assigned To Keywords
Linked issues Watchers

Submitted on 2012-04-29 10h24 by matthiaskrgr, last changed by salimiles.

Author: matthiaskrgr Date: 2012-04-29   10h24
in the north of level 24, there is an obstacle which changes its type as you
step on the trigger.
the collrect however doesn't get updated, because change_obstacle_type doesn't
unglue/glue the changed obstacle but only changes its type.

 version 0.15-194-g83d039e.
Author: hakzsam Date: 2012-05-01   20h35
What is the obstacle in question ?
Author: matthiaskrgr Date: 2012-05-01   21h28
The function is the problem. Issue is clearly reproducible with the trigger on
(43|4) on level 24 (and the changing obstacle).
Author: ahuillet Date: 2012-05-04   06h18
This must be solved for the next release.
Author: salimiles Date: 2012-11-03   09h13
I confirmed the issue on level 24 but couldn't solve it. The issue appears to
only happen in games started from the Level Editor. If saved, and then loaded
from save, there seems to be no problem with the collrect updating.

This does not seem to affect the "Town-NorthGateGuard.dialog", which correctly
opens and closes the gates with no problem (even when started from the Level

 I did find a number of things that are working correctly:
- Automap (updates correctly)
- blit_obstacle_collision_rectangle() in view.c

Puzzling. But perhaps not essential to be solved before next release, since it
only seems to occur outside of standard gameplay?
Date User Action Args
2012-11-03 09:13:04salimilessetmessages: + msg2364
2012-05-04 06:18:14ahuilletsetpriority: bug -> important
messages: + msg2253
2012-05-01 21:28:21matthiaskrgrsetmessages: + msg2246
2012-05-01 20:35:26hakzsamsetmessages: + msg2245
2012-04-29 10:24:45matthiaskrgrcreate