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
There is no need to keep a reference to oldData because the old data already gets passed into the undo and redo objects. Additionally, there is no need to make 10's of undo objects per single tile edit, which currently happens. The added if( newTile !== oldTile ) check ensures we only have one undo object per edit, which is necessary before we can delete the oldData array.
The text was updated successfully, but these errors were encountered:
This property can be deleted:
Impact/lib/weltmeister/edit-map.js
Line 18 in 98037a5
And so can these two methods:
Impact/lib/weltmeister/edit-map.js
Lines 81 to 97 in 98037a5
And then patch weltmeister.js as follows:
There is no need to keep a reference to
oldData
because the old data already gets passed into theundo
andredo
objects. Additionally, there is no need to make 10's ofundo
objects per single tile edit, which currently happens. The addedif( newTile !== oldTile )
check ensures we only have oneundo
object per edit, which is necessary before we can delete theoldData
array.The text was updated successfully, but these errors were encountered: