From 4bdc44ce4e1febf9d9b157116d718e818608a76e Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sat, 16 Dec 2017 13:15:57 +0700 Subject: [PATCH] Code cleanup: fix cast from float to s16. --- src/gDP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gDP.cpp b/src/gDP.cpp index db768cc6..d9055be2 100644 --- a/src/gDP.cpp +++ b/src/gDP.cpp @@ -816,7 +816,7 @@ void gDPTextureRectangle(f32 ulx, f32 uly, f32 lrx, f32 lry, s32 tile, s16 s, s1 // HACK ALERT! if (s == 0x4000 && (gDP.colorImage.width + gSP.textureTile[0]->uls < 512)) - s = 0.0f; + s = 0; gDP.rectColor = gDPInfo::Color(); if (gDP.otherMode.cycleType < G_CYC_COPY) {