]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Graphic/Decal.cpp
Added an enum for decal type
[lugaru.git] / Source / Graphic / Decal.cpp
index a535dee287111b5445cd31c69544da67a0a49e86..de3388f75ff191ba08a1169e6896dac837a43648 100644 (file)
@@ -24,7 +24,7 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 
 Decal::Decal() :
     position(),
-    type(0),
+    type(shadowdecal),
     opacity(0),
     rotation(0),
     alivetime(0),
@@ -32,7 +32,7 @@ Decal::Decal() :
 {
 }
 
-Decal::Decal(XYZ _position, int _type, float _opacity, float _rotation, float _brightness, int whichx, int whichy, float size, const Terrain& terrain, bool first) :
+Decal::Decal(XYZ _position, decal_type _type, float _opacity, float _rotation, float _brightness, int whichx, int whichy, float size, const Terrain& terrain, bool first) :
     position(_position),
     type(_type),
     opacity(_opacity),