mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-26 03:12:18 -05:00
FIX: Song's Overlay with Fast Ocarina Playback (#2431)
* FIX: Affected songs * TWEAK: Addressed comments
This commit is contained in:
parent
8a76a3aa83
commit
3218b2def2
@ -80,10 +80,11 @@ void OceffWipe_Draw(Actor* thisx, PlayState* play) {
|
||||
|
||||
OPEN_DISPS(play->state.gfxCtx);
|
||||
|
||||
int fastOcarinaPlayback = (CVarGetInteger("gFastOcarinaPlayback", 0) != 0);
|
||||
if (this->timer < 32) {
|
||||
z = Math_SinS(this->timer << 9) * 1400;
|
||||
z = Math_SinS(this->timer << 9) * (fastOcarinaPlayback ? 1200.0f : 1400.0f);
|
||||
} else {
|
||||
z = 1400;
|
||||
z = fastOcarinaPlayback ? 1200.0f : 1400.0f;
|
||||
}
|
||||
|
||||
if (this->timer >= 80) {
|
||||
|
@ -71,10 +71,12 @@ void OceffWipe2_Draw(Actor* thisx, PlayState* play) {
|
||||
|
||||
eye = GET_ACTIVE_CAM(play)->eye;
|
||||
Camera_GetSkyboxOffset(&vec, GET_ACTIVE_CAM(play));
|
||||
|
||||
int fastOcarinaPlayback = (CVarGetInteger("gFastOcarinaPlayback", 0) != 0);
|
||||
if (this->timer < 32) {
|
||||
z = Math_SinS(this->timer << 9) * 1330;
|
||||
z = Math_SinS(this->timer << 9) * (fastOcarinaPlayback ? 1200.0f : 1330.0f);
|
||||
} else {
|
||||
z = 1330;
|
||||
z = fastOcarinaPlayback ? 1200.0f : 1330.0f;
|
||||
}
|
||||
|
||||
vtxPtr = ResourceMgr_LoadVtxByName(sFrustumVtx);
|
||||
|
@ -72,10 +72,12 @@ void OceffWipe3_Draw(Actor* thisx, PlayState* play) {
|
||||
|
||||
eye = GET_ACTIVE_CAM(play)->eye;
|
||||
Camera_GetSkyboxOffset(&vec, GET_ACTIVE_CAM(play));
|
||||
|
||||
int fastOcarinaPlayback = (CVarGetInteger("gFastOcarinaPlayback", 0) != 0);
|
||||
if (this->counter < 32) {
|
||||
z = Math_SinS(this->counter << 9) * 1330;
|
||||
z = Math_SinS(this->counter << 9) * (fastOcarinaPlayback ? 1200.0f : 1330.0f);
|
||||
} else {
|
||||
z = 1330;
|
||||
z = fastOcarinaPlayback ? 1200.0f : 1330.0f;
|
||||
}
|
||||
|
||||
vtxPtr = ResourceMgr_LoadVtxByName(sFrustumVtx);
|
||||
|
@ -67,10 +67,12 @@ void OceffWipe4_Draw(Actor* thisx, PlayState* play) {
|
||||
|
||||
eye = GET_ACTIVE_CAM(play)->eye;
|
||||
Camera_GetSkyboxOffset(&vec, GET_ACTIVE_CAM(play));
|
||||
|
||||
int fastOcarinaPlayback = (CVarGetInteger("gFastOcarinaPlayback", 0) != 0);
|
||||
if (this->timer < 16) {
|
||||
z = Math_SinS(this->timer * 1024) * 1330.0f;
|
||||
z = Math_SinS(this->timer * 1024) * (fastOcarinaPlayback ? 1200.0f : 1330.0f);
|
||||
} else {
|
||||
z = 1330.0f;
|
||||
z = fastOcarinaPlayback ? 1200.0f : 1330.0f;
|
||||
}
|
||||
|
||||
vtxPtr = ResourceMgr_LoadVtxByName(sFrustumVtx);
|
||||
|
Loading…
Reference in New Issue
Block a user