Author Topic: [FIXED] Loading game changes RNG seed  (Read 314 times)

Offline Delian

  • Commander
  • *****
  • Posts: 645
    • View Profile
[FIXED] Loading game changes RNG seed
« on: February 12, 2025, 11:16:08 pm »
I have Options > OXC >  "Save scumming" set to "No"
However, this can be bypassed simply through the act of saving and loading the battle game.
In other words, every time you save and load the battle battle, the RNG seed changes, even if you didn't do anything.

https://github.com/MeridianOXC/OpenXcom/blob/6b3ec872504b6ff7fc076ab0922c07ad32e5375a/src/Savegame/SavedBattleGame.cpp#L3372
This RNG call should be seedless.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9393
    • View Profile
Re: Loading game changes RNG seed
« Reply #1 on: February 12, 2025, 11:25:19 pm »
Nice catch.

I'll make it seedless.
« Last Edit: February 12, 2025, 11:35:42 pm by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9393
    • View Profile