diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-29 08:15:06 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-29 08:15:06 -0400 |
commit | 0e5c78738efd5206ace1d000fd4160e223ba8597 (patch) | |
tree | 4dfc4fc87c58cec092ebae2904cd4e2f9d583dc0 | |
parent | 9542d9a8a022fe1d3390510e8a135a4917df7aa7 (diff) |
fixed world again
-rw-r--r-- | include/common.h | 2 | ||||
-rw-r--r-- | include/world.h | 2 | ||||
-rw-r--r-- | src/world.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h index 3c83e66..f278020 100644 --- a/include/common.h +++ b/include/common.h @@ -65,7 +65,7 @@ typedef struct { * */ -#define HLINE 2 // 3 as in 3 pixels +#define HLINE 3 // 3 as in 3 pixels /* * Define 'our' random number generation library. Eventually these macros will be replaced diff --git a/include/world.h b/include/world.h index ef9ef6e..ab161c0 100644 --- a/include/world.h +++ b/include/world.h @@ -71,7 +71,7 @@ public: // drawn and handled by the world. void addHole(unsigned int start,unsigned int end); // Create a hole in the world - int getWidth(void); + int getStart(void); }; float worldGetYBase(World *w); diff --git a/src/world.cpp b/src/world.cpp index ec91c02..97ec5ac 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -581,7 +581,7 @@ void World::addHole(unsigned int start,unsigned int end){ } } -int World::getWidth(void){ +int World::getStart(void){ return -x_start; } |