From c8031cf1d2d784bdac9aa4ea97fc27f88b8e3ce7 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Oct 2021 16:24:21 +0200 Subject: Removed storage location from enum declaration --- Stars45/HUDView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Stars45/HUDView.cpp') diff --git a/Stars45/HUDView.cpp b/Stars45/HUDView.cpp index 392ba3e..01a0c94 100644 --- a/Stars45/HUDView.cpp +++ b/Stars45/HUDView.cpp @@ -201,7 +201,7 @@ static int tgt_status = System::NOMINAL; // +--------------------------------------------------------------------+ -static enum TXT { +enum TXT { MAX_CONTACT = 50, TXT_CAUTION_TXT = 0, -- cgit v1.1 From d25ea30c9cd9e66ea5d484017a9209cdb78332ae Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Oct 2021 16:24:51 +0200 Subject: Fixed conversion from rvalue to non-const lvalue reference --- Stars45/HUDView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Stars45/HUDView.cpp') diff --git a/Stars45/HUDView.cpp b/Stars45/HUDView.cpp index 01a0c94..4521c06 100644 --- a/Stars45/HUDView.cpp +++ b/Stars45/HUDView.cpp @@ -1361,7 +1361,10 @@ HUDView::DrawBars() int align = DT_LEFT; if (Game::Paused()) - DrawHUDText(TXT_PAUSED, Game::GetText("HUDView.PAUSED"), Rect(cx-128, cy-60, 256, 12), DT_CENTER); + { + Rect pause_rect = Rect(cx - 128, cy - 60, 256, 12); + DrawHUDText(TXT_PAUSED, Game::GetText("HUDView.PAUSED"), pause_rect, DT_CENTER); + } if (ship) { DrawContactMarkers(); -- cgit v1.1