Fix missing warningstream (or similar problem) (#7034)
authoryou <ovvv@web.de>
Sun, 4 Mar 2018 16:34:36 +0000 (17:34 +0100)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Sun, 4 Mar 2018 16:34:36 +0000 (17:34 +0100)
commit540e07e3ef07de760100c2948dc3a756e48b1c72
tree80faec4d957688f1f83c5285386c2d413de3413d
parent929792e15ea50943e7fd23925c3d1d431dfd8a02
Fix missing warningstream (or similar problem) (#7034)

Use the --color command line parameter instead of a setting for coloured logs

This fixes the missing warningstream bug, g_settings->get mustn't be used there.
Also, the decision about en- or disabling log colours fits better to the command line parameters than minetest settings.
builtin/settingtypes.txt
src/defaultsettings.cpp
src/log.cpp
src/log.h
src/main.cpp