XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

fix: correct sortie reset for older versions (#4450)

Closes #4415 Fixes the bug of two sorties at once showing up right before reset in older builds. Tested on U22.13.4, 25.7.0, 26.0.4 & 42. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4450 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: Animan8000 <187183497+Veniman8000@users.noreply.github.com> Co-committed-by: Animan8000 <187183497+Veniman8000@users.noreply.github.com>

2b401201
Animan8000 <187183497+Veniman8000@users.noreply.github.com>
提交于

代码差异

2 个文件 +8 -3
Modified src/constants/gameToBuildVersion.ts +1 -1
@@ -49,8 +49,8 @@ const gameToBuildVersion = {
49 49 "27.2.0": "2020.03.05.16.06",
50 50 "27.0.0": "2019.12.13.15.04",
51 51 "26.0.0": "2019.10.31.22.42",
52 "25.7.0": "2019.08.29.20.01",
53 52 "25.8.2": "2019.10.18.15.43", // forum post date
53 "25.7.0": "2019.08.29.20.01",
54 54 "25.3.0": "2019.07.06.20.11", // forum post date
55 55 "25.1.2": "2019.06.12.17.55", // forum post date
56 56 "25.0.0": "2019.05.22.23.12",
Modified src/services/worldStateService.ts +7 -2
@@ -4546,8 +4546,13 @@ export const getWorldState = (
4546 4546 if (version_compare(buildLabel, gameToBuildVersion["18.18.0"]) >= 0) {
4547 4547 if (timeMs < rollover) {
4548 4548 worldState.Sorties.push(getSortie(day - 1, buildLabel));
4549 }
4550 if (isBeforeNextExpectedWorldStateRefresh(timeMs, rollover)) {
4549 if (
4550 version_compare(buildLabel, gameToBuildVersion["25.7.0"]) >= 0 &&
4551 isBeforeNextExpectedWorldStateRefresh(timeMs, rollover)
4552 ) {
4553 worldState.Sorties.push(getSortie(day, buildLabel));
4554 }
4555 } else {
4551 4556 worldState.Sorties.push(getSortie(day, buildLabel));
4552 4557 }
4553 4558 }