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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/XFESpaceNinjaServer

fix: omit sortie for pre-Star Chart 3.0 clients (#3535)

Closes #3534 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3535 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

5aea2566
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +8 -5
Modified src/services/worldStateService.ts +8 -5
@@ -3892,11 +3892,14 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
3892 3892 {
3893 3893 const rollover = getSortieTime(day);
3894 3894
3895 if (timeMs < rollover) {
3896 worldState.Sorties.push(getSortie(day - 1));
3897 }
3898 if (isBeforeNextExpectedWorldStateRefresh(timeMs, rollover)) {
3899 worldState.Sorties.push(getSortie(day));
3895 // Omit sorties for pre-Star Chart 3.0 clients to avoid breaking them.
3896 if (!buildLabel || version_compare(buildLabel, gameToBuildVersion["18.18.0"]) >= 0) {
3897 if (timeMs < rollover) {
3898 worldState.Sorties.push(getSortie(day - 1));
3899 }
3900 if (isBeforeNextExpectedWorldStateRefresh(timeMs, rollover)) {
3901 worldState.Sorties.push(getSortie(day));
3902 }
3900 3903 }
3901 3904
3902 3905 // The client does not seem to respect activation for classic syndicate missions, so only pushing current ones.