Skip to content

Commit

Permalink
Fix purchase tile on city view and sound of civiv/tech popup
Browse files Browse the repository at this point in the history
- Fixes #392
  • Loading branch information
Azurency committed May 14, 2019
1 parent 36249e2 commit 2622118
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Assets/UI/Popups/techciviccompletedpopup.lua
Expand Up @@ -301,7 +301,9 @@ function RealizeNextPopup()
end

if not CQUI_TechPopupVisual then
Close();
m_kPopupData = {};
m_kCurrentData = nil;
UIManager:DequeuePopup(ContextPtr);
end

RefreshSize();
Expand Down
3 changes: 2 additions & 1 deletion Assets/UI/worldinput.lua
Expand Up @@ -425,7 +425,6 @@ function StartDragMap()
m_dragStartWorldX, m_dragStartWorldY = UI.GetWorldFromNormalizedScreenPos_NoWrap( dragStartX, dragStartY );
m_dragX = dragStartX;
m_dragY = dragStartY;
LuaEvents.CQUI_StartDragMap();
end

-- ===========================================================================
Expand All @@ -448,6 +447,8 @@ function UpdateDragMap()
return;
end

LuaEvents.CQUI_StartDragMap();

if m_isALTDown then
UI.SpinMap( m_dragStartX - x, m_dragStartY - y );
else
Expand Down

0 comments on commit 2622118

Please sign in to comment.