aboutsummaryrefslogtreecommitdiffstats
path: root/src/attack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/attack.cpp')
-rw-r--r--src/attack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attack.cpp b/src/attack.cpp
index 41fb77c..fe32dad 100644
--- a/src/attack.cpp
+++ b/src/attack.cpp
@@ -54,7 +54,7 @@ namespace lua {
auto h = entity->component<Health>();
h->health -= d;
if (h->ouch != nullptr)
- Mix_PlayChannel(0, h->ouch, 0);
+ Mix_PlayChannel(1, h->ouch, 0);
return 0;
}
}
@@ -140,7 +140,7 @@ void AttackSystem::render(void)
Render::worldShader.enable();
for (auto& ae : effects) {
ae.effect(ae.counter / RATE); // bind current frame
- auto dim = ae.effect.getTextureDim();
+ auto dim = ae.effect.getTextureDim() * game::HLINE;
auto s = ae.pos - (dim / 2);
GLfloat verts[] = {
s.x, s.y, z, 0, 0,