mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-26 23:26:45 -04:00
Merge pull request #287 from TwilitRealm/fix/fix-senses-wide
Fixes senses when changing window size
This commit is contained in:
@@ -1564,8 +1564,7 @@ void daAlink_c::setMetamorphoseEffectStartLink() {
|
||||
#endif
|
||||
|
||||
#if TARGET_PC
|
||||
static const Vec effWideScale = {mDoGph_gInf_c::getAspect(), 1.0f, 1.0f};
|
||||
emitter->setGlobalParticleScale(effWideScale);
|
||||
emitter->setGlobalParticleScale(mDoGph_gInf_c::getScale(), 1.0f);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -821,12 +821,20 @@ static void dKy_FiveSenses_fullthrottle_dark_static1() {
|
||||
}
|
||||
|
||||
if (kankyo->senses_ef_emitter1 != NULL) {
|
||||
#if TARGET_PC
|
||||
kankyo->senses_ef_emitter1->setGlobalParticleScale(mDoGph_gInf_c::getScale(), 1.0f);
|
||||
#endif
|
||||
|
||||
kankyo->senses_ef_emitter1->setGlobalTranslation(particle_pos.x, particle_pos.y,
|
||||
particle_pos.z);
|
||||
kankyo->senses_ef_emitter1->setGlobalAlpha(kankyo->senses_effect_strength * 255.0f);
|
||||
}
|
||||
|
||||
if (kankyo->senses_ef_emitter2 != NULL) {
|
||||
#if TARGET_PC
|
||||
kankyo->senses_ef_emitter2->setGlobalParticleScale(mDoGph_gInf_c::getScale(), 1.0f);
|
||||
#endif
|
||||
|
||||
kankyo->senses_ef_emitter2->setGlobalTranslation(particle_pos.x, particle_pos.y,
|
||||
particle_pos.z);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user