aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-03-04 07:31:12 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-03-04 07:31:12 -0500
commit6af8dcbaa41a7db52ff8f6074d2b113ec7eaf12d (patch)
tree96be39f3670d5dd2d71b001340d7aff9b6164003 /main.cpp
parentb61bbe703a03d58dc660d05b4bb32f69a4c70436 (diff)
parentfe5ea7fe415857f49d6630f2b0f50e1246c38eee (diff)
Merge branch 'master' of http://github.com/tcsullivan/gamedev
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/main.cpp b/main.cpp
index abc4f3c..e96a555 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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);
}
}