PlayerSettings struct for player movement code (#7243)
authorBen Deutsch <ben@bendeutsch.de>
Wed, 18 Apr 2018 18:56:01 +0000 (20:56 +0200)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Wed, 18 Apr 2018 18:56:01 +0000 (20:56 +0200)
commit3eac24946418d787697077cc1806856e514ba5f4
treeb831acb5d872cdc0f46123e92be9bb21f46d8d9f
parentb1e58c9c35ae3eb6167a0745086cdb0ddb1dd9d7
PlayerSettings struct for player movement code (#7243)

Instead of calling g_settings->getBool("flag") multiple times
during each movement step, the current settings are cached
in a new player object member. Updated via registered callbacks.
src/localplayer.cpp
src/player.cpp
src/player.h