Skip to content

Commit 1972008

Browse files
committed
Corrected vault save timing for Portal games/mods
1 parent a6270f9 commit 1972008

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

GameSpecific/Portal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected override void OnSaveLoadedInternal(GameState state, TimerActions actio
101101

102102
if (_vaultHashes.Contains(md5))
103103
{
104-
actions.Start(-53010); // don't add a tick here since this gets done on the next session start
104+
actions.Start(-(53010 + 15));
105105
OnceFlag = true;
106106
Debug.WriteLine($"portal vault save start");
107107
return;

GameSpecific/PortalMods/PortalMods_TheFlashVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected override void OnSaveLoadedInternal(GameState state, TimerActions actio
4444
if (md5 == "3b3a18c32a9a9de68a178e759db80104")
4545
{
4646
Debug.WriteLine("tfv start");
47-
actions.Start(-3803 * 15);
47+
actions.Start(-((3803 + 1) * 15));
4848
}
4949
}
5050
}
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)