Skip to content

Commit 8fb0cbe

Browse files
authored
Fix Message Line Positioning (#7144)
Message Lines were not being rendered to the proper position for certain resolutions per issue #7143. #6575 seemed to be the commit it broke on, and looking at that commit it showed that code added `x` and `y` to the render string positions, even though `x` and `y` did not exist there before. This 1-line PR fixes that issue, and it is confirmed to fix the issue by KamiGaAtaeta. Also I checked and on more standard resolutions the message lines still display as expected in both mission and the HUD Config screen.
1 parent ce0fe08 commit 8fb0cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/hud/hudmessage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ void HudGaugeMessages::render(float /*frametime*/, bool config)
475475
setGaugeColor();
476476
}
477477
// print the message out
478-
renderString(x + active_message.msg.x, y + active_message.y, active_message.msg.text.c_str(), scale);
478+
renderString(active_message.msg.x, active_message.y, active_message.msg.text.c_str(), scale);
479479
}
480480
}
481481
}

0 commit comments

Comments
 (0)