diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-04 07:31:12 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-04 07:31:12 -0500 |
commit | 6af8dcbaa41a7db52ff8f6074d2b113ec7eaf12d (patch) | |
tree | 96be39f3670d5dd2d71b001340d7aff9b6164003 /main.cpp | |
parent | b61bbe703a03d58dc660d05b4bb32f69a4c70436 (diff) | |
parent | fe5ea7fe415857f49d6630f2b0f50e1246c38eee (diff) |
Merge branch 'master' of http://github.com/tcsullivan/gamedev
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -117,7 +117,6 @@ std::mutex mtx; std::condition_variable cv; ThreadPool pool(10); - /* * loops is used for texture animation. It is believed to be passed to entity * draw functions, although it may be externally referenced instead. @@ -163,7 +162,7 @@ Menu *currentMenu; Menu optionsMenu; Menu pauseMenu; -extern WEATHER weather; +extern WorldWeather weather; extern int fadeIntensity; extern bool fadeEnable; @@ -934,10 +933,10 @@ void logic(){ * Switch between day and night (SUNNY and DARK) if necessary. */ if(!(tickCount%DAY_CYCLE)||!tickCount){ - if(weather==SUNNY){ - weather=DARK; - }else{ - weather=SUNNY; + if ( weather == WorldWeather::Sunny ) + weather = WorldWeather::Dark; + else { + weather = WorldWeather::Sunny; Mix_Pause(2); } } |