[jasper/world/studio] Simplify EditWorldSizeCommand::mergeWith
All checks were successful
Build / build (push) Successful in 3m8s
All checks were successful
Build / build (push) Successful in 3m8s
This commit is contained in:
parent
b51098595a
commit
18e4183623
@ -38,9 +38,8 @@ bool EditWorldSizeCommand::mergeWith(studio::UndoCommand const&cmd) noexcept {
|
||||
m_newSize = es->m_newSize;
|
||||
// undo
|
||||
resize(m_doc, m_oldSize);
|
||||
m_doc.tiles = std::move(m_oldMap);
|
||||
m_doc.tiles = m_oldMap;
|
||||
// redo
|
||||
m_oldMap = m_doc.tiles;
|
||||
resize(m_doc, m_newSize);
|
||||
oxLogError(loadWorldStatic(m_objCache, m_doc).moveTo(m_worldStatic));
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user