diff options
| author | Jonas Ask | 2009-10-22 02:04:25 +0000 |
|---|---|---|
| committer | Jonas Ask | 2009-10-22 02:04:25 +0000 |
| commit | 4bcc80edf1d438ce6718df4d580b2579ba22afa2 (patch) | |
| tree | 5eb50d37ae4badae38927cc2f71f65942eafd621 /SpriteMaps.cpp | |
| parent | acf2eb9f50deb85d9473888633f02f9f210300b8 (diff) | |
| download | stonesense-4bcc80edf1d438ce6718df4d580b2579ba22afa2.tar.gz stonesense-4bcc80edf1d438ce6718df4d580b2579ba22afa2.tar.bz2 stonesense-4bcc80edf1d438ce6718df4d580b2579ba22afa2.tar.xz | |
Saplings, dead trees, bushes and all that is now correctly identified. Thanks Peterix
Diffstat (limited to 'SpriteMaps.cpp')
| -rw-r--r-- | SpriteMaps.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/SpriteMaps.cpp b/SpriteMaps.cpp index 0441d48..23babb3 100644 --- a/SpriteMaps.cpp +++ b/SpriteMaps.cpp @@ -1,3 +1,4 @@ +#include "common.h"
#include "SpriteMaps.h"
@@ -518,10 +519,9 @@ int GetRampMaterialTypeMap(int in){ }
-int GetWallSpriteVegitation( int type, int index , int x, int y){
+int GetWallSpriteVegitation( VegetationType type, int index){
switch(type){
- case 0: //healthy trees
- case 1: //trees by water??
+ case TREE_OK:
switch(index){
case 1://SAGUARO
return SPRITEOBJECT_CACTUS;
@@ -560,9 +560,18 @@ int GetWallSpriteVegitation( int type, int index , int x, int y){ return SPRITEOBJECT_TREE_BROADLEAF;
}
break;
- case 2:
+ case TREE_DEAD:
+ return SPRITEOBJECT_DEAD_TREE;
+ break;
+ case SHRUB_DEAD:
+ case SHRUB_OK:
return SPRITEOBJECT_SHRUB;
break;
+ case SAPLING_DEAD:
+ case SAPLING_OK:
+ return SPRITEOBJECT_SAPLING;
+ break;
+
}
|
