diff options
author | kwolekr <kwolekr@minetest.net> | 2015-07-08 11:53:02 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-07-10 15:58:57 -0400 |
commit | 8eb272cea38325f963c521ecfa7b927a563f8509 (patch) | |
tree | 28b54d7ad2e7195413ff7516412761de7b2ef1ee /src/client | |
parent | e6f0178e83b81befded22d3a0de8200739e2d7c3 (diff) | |
download | minetest-8eb272cea38325f963c521ecfa7b927a563f8509.tar.gz minetest-8eb272cea38325f963c521ecfa7b927a563f8509.tar.bz2 minetest-8eb272cea38325f963c521ecfa7b927a563f8509.zip |
Misc. minor fixes
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/inputhandler.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/client/inputhandler.h b/src/client/inputhandler.h index 3da856f7b..a894e35aa 100644 --- a/src/client/inputhandler.h +++ b/src/client/inputhandler.h @@ -88,15 +88,14 @@ public: } else if (event.EventType == irr::EET_LOG_TEXT_EVENT) { static const enum LogMessageLevel irr_loglev_conv[] = { LMT_VERBOSE, // ELL_DEBUG - LMT_INFO, // ELL_INFORMATION - LMT_ACTION, // ELL_WARNING - LMT_ERROR, // ELL_ERROR - LMT_ERROR, // ELL_NONE + LMT_INFO, // ELL_INFORMATION + LMT_ACTION, // ELL_WARNING + LMT_ERROR, // ELL_ERROR + LMT_ERROR, // ELL_NONE }; - assert(event.LogEvent.Level < sizeof(irr_loglev_conv)); + assert(event.LogEvent.Level < ARRLEN(irr_loglev_conv)); log_printline(irr_loglev_conv[event.LogEvent.Level], - std::string("Irrlicht: ") - + (const char*) event.LogEvent.Text); + std::string("Irrlicht: ") + (const char *)event.LogEvent.Text); return true; } /* always return false in order to continue processing events */ |