Issue591

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

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

Messages
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
Editor).

 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?
Author: fluzz Date: 2024-04-18   14h46
Fixed in commit ea68a4350b769fa08bbabbacf0bd9962c90fa3d0
History
Date User Action Args
2024-04-18 14:46:10fluzzsetstatus: open -> resolved
messages: + msg3837
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