summaryrefslogtreecommitdiff
path: root/src/game/decos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/decos.cpp')
-rw-r--r--src/game/decos.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/game/decos.cpp b/src/game/decos.cpp
index bbb1cee..53e9b88 100644
--- a/src/game/decos.cpp
+++ b/src/game/decos.cpp
@@ -38,7 +38,7 @@ static const struct {
},
{
&assets::deco.stone,
- {-0.2f, +0.1f}, {+0.2f, +0.2f}, 0,
+ {-0.2f, +0.1f}, {+0.2f, +0.2f}, CF_DECOS,
{-0.2f, -0.2f}, {+0.2f, +0.2f}, 0.0
},
{
@@ -48,7 +48,7 @@ static const struct {
},
{
&assets::deco.eyething_dead,
- {-0.4f, -0.4f}, {+0.4f, +0.4f}, 0,
+ {-0.4f, -0.4f}, {+0.4f, +0.4f}, CF_DECOS,
{-0.4f, -1.2f}, {+0.4f, +0.4f}, 0.3
},
{
@@ -58,17 +58,17 @@ static const struct {
},
{
&assets::deco.spike_broken,
- {-0.4f, -0.4f}, {+0.4f, +0.4f}, 0,
+ {-0.4f, -0.4f}, {+0.4f, +0.4f}, CF_DECOS,
{-0.4f, -1.2f}, {+0.4f, +0.4f}, 0.0
},
{
&assets::deco.spike_small,
- {-0.2f, +0.1f}, {+0.2f, +0.2f}, 0,
+ {-0.2f, +0.1f}, {+0.2f, +0.2f}, CF_DECOS,
{-0.2f, -0.6f}, {+0.2f, +0.2f}, 0.0
},
{
&assets::deco.wart,
- {-0.2f, +0.1f}, {+0.2f, +0.2f}, 0,
+ {-0.2f, +0.1f}, {+0.2f, +0.2f}, CF_DECOS,
{-0.2f, -0.2f}, {+0.2f, +0.2f}, 0.0
}
};
@@ -105,8 +105,14 @@ void deco_t::damage(int points, unit_t *attacker)
type = DECO_SPIKE_BROKEN;
break;
- default:
+ case DECO_STONE_CRACKED:
+ case DECO_EYETHING_DEAD:
+ case DECO_SPIKE_BROKEN:
break;
+
+ default:
+ delete this;
+ return;
}
cmodel.cflags = decos[type].cflags;