Hoodad / Editor_TLCB

A map editor for our game The Litle Cheese Boy
1 stars 0 forks source link

[Paint tool?] Placing one tile results in two actions #12

Closed jarllarsson closed 11 years ago

jarllarsson commented 11 years ago

Seems to occur now, but if not obvious error; put this on hold until action system/undo tree is fully in place.

jarllarsson commented 11 years ago

Was this solved in an unmerged branch? I'm still having this issue in master, 1 click=2 actions for paint tool, thus the amount of actions are doubled when using the paint tool. If it's solved, close this again upon merge to master of the branch containing the fix. If not, investigate further(is it another resurfacing error due to merge problems?).

Hoodad commented 11 years ago

This is the result of how the tilemap are managed and is not a bug. There are currently three types of tilemaps, one for when you painting using the paint tool, one for when painting using the road tool and a final tilemap that is these two combined into one final map. However due to unwanted behavior, as encountered during the meeting yesterday, a redesign of how the tilemaps are worked with might soon be underway.

So the reason for paint tool to cause two actions is that it has to remove the road tile and also write the selected tile onto the paint tool tilemap.

jarllarsson commented 11 years ago

Ok! I'll close this then.