Environment: Time of day fixes and add serverside getter
authorest31 <MTest31@outlook.com>
Tue, 27 Oct 2015 20:03:59 +0000 (21:03 +0100)
committerest31 <MTest31@outlook.com>
Tue, 27 Oct 2015 22:19:17 +0000 (23:19 +0100)
commitca8e56c15a26bc5f3d1dffe5fd39e1ca4b82d6f8
treecc5d8627278d725f630e9df99b14a6b5964b4543
parentc406438b95e3df181961add56a2511b96bd9d690
Environment: Time of day fixes and add serverside getter

-> Put access to time variables under the time lock.
-> Merge both time locks, there is no point to have two locks.
-> Fix the lock being released too early in Environment::setTimeOfDay
-> Add serverside getter so that you don't have to get
the environment if you only have the server
src/environment.cpp
src/environment.h
src/server.cpp
src/server.h