mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-02 20:56:04 -04:00
Possible Fix for SkySnow Crash (#664)
* Update SkySnow.cpp * Update SkySnow.cpp
This commit is contained in:
@@ -25,6 +25,7 @@ size_t SkySnow::_count = 0;
|
||||
SkySnow::SkySnow(ScreenContext* screen) : SkyActor(screen) {
|
||||
_idx = _count;
|
||||
|
||||
mVtx = (Vtx*)LOAD_ASSET(common_vtx_rectangle);
|
||||
mState = 0;
|
||||
mState2 = 0;
|
||||
|
||||
@@ -102,13 +103,13 @@ void SkySnow::Draw(ScreenContext* screen, s32 arg0) { // render_clouds
|
||||
|
||||
void SkySnow::func_80077E20() {
|
||||
u8* tex = (u8*) LOAD_ASSET(D_0D0293D8);
|
||||
Vtx* vtx = (Vtx*) LOAD_ASSET(common_vtx_rectangle);
|
||||
//Vtx* vtx = (Vtx*) LOAD_ASSET(common_vtx_rectangle);
|
||||
|
||||
mTexture = tex;
|
||||
//! @bug frappe snowland There's something up with the handling of common_vtx_rectangle and the loading of 0x10
|
||||
//! right here
|
||||
// root function: func_80078C70
|
||||
mVtx = vtx;
|
||||
//mVtx = vtx;
|
||||
mTextureWidth = 16;
|
||||
mTextureHeight = 16;
|
||||
mScale = 0.15f;
|
||||
@@ -180,4 +181,4 @@ void SkySnow::func_80077F64(Camera* camera) {
|
||||
mState2 = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user