Skip to content

Commit

Permalink
Fixed info text hud position saving
Browse files Browse the repository at this point in the history
  • Loading branch information
schwiti6190 committed Dec 18, 2024
1 parent d96a659 commit 610daaf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/gui/hud/CpHudInfoTexts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,7 @@ function CpHudInfoTexts.loadFromXmlFile(xmlFile,baseKey)
local posX = xmlFile:getValue(baseKey..CpHudInfoTexts.xmlKey.."#posX")
local posY = xmlFile:getValue(baseKey..CpHudInfoTexts.xmlKey.."#posY")
if posX ~= nil and posY ~= nil then
CpHudInfoTexts.savedPositions = {
posX, posY
}
g_Courseplay.infoTextsHud:moveToPosition(nil, posX, posY)
end
end

Expand Down

0 comments on commit 610daaf

Please sign in to comment.