diff options
| author | Jonas Ask | 2009-10-22 12:54:20 +0000 |
|---|---|---|
| committer | Jonas Ask | 2009-10-22 12:54:20 +0000 |
| commit | fb452ce9594ea297aea586512ee66d47f232add5 (patch) | |
| tree | aa60bdc48c6ce33dfcb169d2013de5175f019e77 /Constructions.cpp | |
| parent | 4bcc80edf1d438ce6718df4d580b2579ba22afa2 (diff) | |
| download | stonesense-fb452ce9594ea297aea586512ee66d47f232add5.tar.gz stonesense-fb452ce9594ea297aea586512ee66d47f232add5.tar.bz2 stonesense-fb452ce9594ea297aea586512ee66d47f232add5.tar.xz | |
Cleaning up and some heavy refactoring.
Added a safety so users can't scroll to negative z-levels
Diffstat (limited to 'Constructions.cpp')
| -rw-r--r-- | Constructions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Constructions.cpp b/Constructions.cpp index 76cbdbc..5c463ec 100644 --- a/Constructions.cpp +++ b/Constructions.cpp @@ -1,10 +1,10 @@ #include "common.h"
#include "SpriteMaps.h"
#include "Constructions.h"
-#include "GUI.h"
+#include "WorldSegment.h"
-void changeConstructionMaterials(DisplaySegment* segment, Block* b, vector<t_construction>* allConstructions){
+void changeConstructionMaterials(WorldSegment* segment, Block* b, vector<t_construction>* allConstructions){
//find construction
uint32_t i;
t_construction* c;
@@ -78,7 +78,7 @@ void changeConstructionMaterials(DisplaySegment* segment, Block* b, vector<t_con -bool IsConstruction(int in){
+bool IDisConstruction(int in){
switch(in){
case 495: //constructed pillar
case 496: //constructed wall rd2
|
