summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorCraig Robbins <kde.psych@gmail.com>2015-03-07 15:09:27 +1000
committerCraig Robbins <kde.psych@gmail.com>2015-03-07 20:51:07 +1000
commit5698e2baf8008b11706a4bbc4d62c8b584703834 (patch)
treeda8342a56189914ed288e85e74c581cef54a7988 /src/game.cpp
parentffdf8dedb74e59e39a2686a0d7da3740f4f3b2a1 (diff)
downloadminetest-5698e2baf8008b11706a4bbc4d62c8b584703834.tar.gz
minetest-5698e2baf8008b11706a4bbc4d62c8b584703834.tar.bz2
minetest-5698e2baf8008b11706a4bbc4d62c8b584703834.zip
Fix Android text bug (no text displaying)
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 87ee081be..be8d4e679 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -4175,7 +4175,9 @@ inline void Game::limitFps(FpsControl *fps_timings, f32 *dtime)
fps_timings->last_time = time;
}
-
+// Note: This will free (using delete[])! \p msg. If you want to use it later,
+// pass a copy of it to this function
+// Note: \p msg must be allocated using new (not malloc())
void Game::showOverlayMessage(const wchar_t *msg, float dtime,
int percent, bool draw_clouds)
{