From 37b04f0bf38a2f11ea6132150d17a8a3a9bcb90c Mon Sep 17 00:00:00 2001 From: hweimer <68769393+hweimer@users.noreply.github.com> Date: Fri, 7 Oct 2022 22:56:31 +0200 Subject: [PATCH] Fix duration step not being awarded in PBEM games Fixes a bug in the duration, where completed duration step was not immediately awarded in PBEM games, leading to incorrect duration penalties. --- src/game/prest.cpp | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/src/game/prest.cpp b/src/game/prest.cpp index 2d4a0be4..880ba9f5 100644 --- a/src/game/prest.cpp +++ b/src/game/prest.cpp @@ -467,24 +467,13 @@ char Set_Goal(char plr, char which, char control) if (control == 0) { Data->P[plr].MissionCatastrophicFailureOnTurn |= 4; // for astros - - if (MAIL == 0 || MAIL == 3) { - pd = Mev[0].pad; - qt = Data->P[0].Udp[pd].Qty; - Data->P[0].Udp[pd].HInd = Data->P[0].PastMissionCount; - Data->P[0].Udp[pd].Poss[qt] = which; - Data->P[0].Udp[pd].PossVal[qt] = 0; - Data->P[0].Udp[pd].Mnth = tMo; - ++Data->P[0].Udp[pd].Qty; - } else { - Data->Prestige[which].Place = plr; - Data->Prestige[which].Index = Data->P[plr].PastMissionCount; - Data->Prestige[which].Year = tYr; - Data->Prestige[which].Month = tMo; - Data->Prestige[which].Goal[plr]++; // increment count - Data->Prestige[which].Points[plr] += Data->Prestige[which].Add[0]; - sum += Data->Prestige[which].Add[0]; - } + Data->Prestige[which].Place = plr; + Data->Prestige[which].Index = Data->P[plr].PastMissionCount; + Data->Prestige[which].Year = tYr; + Data->Prestige[which].Month = tMo; + Data->Prestige[which].Goal[plr]++; // increment count + Data->Prestige[which].Points[plr] += Data->Prestige[which].Add[0]; + sum += Data->Prestige[which].Add[0]; hero |= HeroCheck(which); } else if (control == 1) {