diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-04-04 07:32:55 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-04-04 07:32:55 -0400 |
commit | c74d256646cf0c438feee2ac703cc1f34b47b8ec (patch) | |
tree | af9ec2469bce263c53ce6adc8d9385750eab3ead /main.cpp | |
parent | 260c617673ab332bf2a3531db45bd264668d1b98 (diff) | |
parent | a45daeda3633bdf25267a0186b39618269dca970 (diff) |
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -154,6 +154,8 @@ Menu *currentMenu; Menu optionsMenu; Menu pauseMenu; +std::string xmlFolder; + extern WorldWeather weather; extern int fadeIntensity; // ui.cpp @@ -227,7 +229,7 @@ int main(int argc, char *argv[]){ * textures for the entities and stuff. */ - if(!(IMG_Init(IMG_INIT_PNG) & IMG_INIT_PNG)){ + if(!(IMG_Init(IMG_INIT_PNG) & IMG_INIT_PNG) | !(IMG_Init(IMG_INIT_JPG) & IMG_INIT_JPG)){ std::cout << "Could not init image libraries! Error: " << IMG_GetError() << std::endl; return -1; } @@ -389,7 +391,9 @@ int main(int argc, char *argv[]){ fadeIntensity = 250; + std::cout << "emem" << std::endl; initEverything(); + std::cout << "meme" << std::endl; if(!currentWorld){ std::cout<<"currentWorld == NULL!"<<std::endl; |