aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-04-04 07:32:55 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-04-04 07:32:55 -0400
commitc74d256646cf0c438feee2ac703cc1f34b47b8ec (patch)
treeaf9ec2469bce263c53ce6adc8d9385750eab3ead /main.cpp
parent260c617673ab332bf2a3531db45bd264668d1b98 (diff)
parenta45daeda3633bdf25267a0186b39618269dca970 (diff)
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 951304f..95d4e05 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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;