From d7efa99f03f9d0eb5d84ed42249f227f13471079 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 16 Sep 2015 11:33:02 -0400 Subject: shitty bug fixes --- include/UIClass.h | 9 +++------ include/World.h | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/UIClass.h b/include/UIClass.h index e6f4825..745dec3 100644 --- a/include/UIClass.h +++ b/include/UIClass.h @@ -5,17 +5,14 @@ #include #include -class UIClass { -private: - unsigned int fontSize; -public: +namespace ui { + extern int mousex,mousey; void init(const char *ttf); void setFontSize(unsigned int fs); void putText(const float x,const float y,const char *s,...); void putString(const float x,const float y,const char *s); void msgBox(const char *str,...); void handleEvents(); - int mousex, mousey; -}; +} #endif // UICLASS_H diff --git a/include/World.h b/include/World.h index fca108d..f6ddbfe 100644 --- a/include/World.h +++ b/include/World.h @@ -18,7 +18,7 @@ private: } __attribute__ ((packed)) *line; unsigned int lineCount; // Size of line array, calculated in the constructor unsigned int entCount; // Count of currently bound entities - void *entity[MAX_ENTITIES]; + void **entity; public: World *behind,*infront; // As in layers World *toLeft,*toRight; // 'new' worlds (off screen) -- cgit v1.2.3