mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
GB: Rename this variable to isolate from a global variable of the same name
- this is a temporary variable and should only affect on this section, and not the global one.
This commit is contained in:
@@ -4830,16 +4830,16 @@ void gbEmulate(int ticksToStop)
|
||||
//(fixes a part of Carmaggedon problem)
|
||||
if ((register_LCDC & 0x01 || gbCgbMode) && (register_LCDC & 0x20) && (gbWindowLine != -2)) {
|
||||
|
||||
int inUseRegister_WY = 0;
|
||||
int tempinUseRegister_WY = inUseRegister_WY;
|
||||
int tempgbWindowLine = gbWindowLine;
|
||||
|
||||
if ((tempgbWindowLine == -1) || (tempgbWindowLine > 144)) {
|
||||
inUseRegister_WY = oldRegister_WY;
|
||||
tempinUseRegister_WY = oldRegister_WY;
|
||||
if (register_LY > oldRegister_WY)
|
||||
tempgbWindowLine = 146;
|
||||
}
|
||||
|
||||
if (register_LY >= inUseRegister_WY) {
|
||||
if (register_LY >= tempinUseRegister_WY) {
|
||||
|
||||
if (tempgbWindowLine == -1)
|
||||
tempgbWindowLine = 0;
|
||||
|
Reference in New Issue
Block a user