Revision 340bb7ae server/src/EmotionConfig.cpp

View differences:

server/src/EmotionConfig.cpp
29 29
#include "EmotionConfig.h"
30 30

  
31 31
EmotionConfig::EmotionConfig() {
32
	end_time = std::chrono::time_point<std::chrono::steady_clock>::max();
32 33
	select_config(NEUTRAL);
33 34
}
34 35

  
......
40 41
}
41 42

  
42 43
bool EmotionConfig::is_active() {
43
	if (end_time.time_since_epoch().count() == 0)
44
		return true;
45 44
	if (std::chrono::steady_clock::now() >= end_time) {
46 45
		return false;
47 46
	}

Also available in: Unified diff