1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-15 05:59:16 +00:00

Fix 2 little bugs

- set default freq/pan for voice playback
- spinycrab script: fix pointer tpe mismatch
This commit is contained in:
fgenesis 2012-01-08 20:22:56 +01:00
parent ef8d13c3e4
commit 39f4f3c856
2 changed files with 5 additions and 2 deletions

View file

@ -1062,6 +1062,9 @@ bool SoundManager::playVoice(const std::string &name, SoundVoiceType svt, float
checkError();
*/
voiceChannel->setPan(0);
voiceChannel->setFrequency(1);
result = voiceChannel->setPaused(false);
checkError();

View file

@ -106,7 +106,7 @@ function enterState(me)
quad_alpha(v.glow, 1, 0.5)
end
if v.eyes ~= 0 then
quad_alpha(v.eyes, 1, 0.5)
bone_alpha(v.eyes, 1, 0.5)
end
entity_animate(me, "idle", -1)
elseif entity_isState(me, STATE_RUNAWAY) then
@ -117,7 +117,7 @@ function enterState(me)
end
quad_alpha(v.glow, 0, 3)
quad_alpha(v.eyes, 0, 3)
bone_alpha(v.eyes, 0, 3)
entity_animate(me, "runAway", -1)
end
end