brackets and oversights

This commit is contained in:
rtldg 2021-03-06 09:54:03 +00:00
parent 3df3943dea
commit 5f59c57c4f
3 changed files with 8 additions and 1 deletions

View File

@ -1275,6 +1275,7 @@ bool LoadReplay(int style, int track, const char[] path)
return false; return false;
} }
void WriteReplayHeader(File fFile, int style, int track, float time, int steamid, int preframes, int timerstartframe, int iSize) void WriteReplayHeader(File fFile, int style, int track, float time, int steamid, int preframes, int timerstartframe, int iSize)
{ {
fFile.WriteLine("%d:" ... REPLAY_FORMAT_FINAL, REPLAY_FORMAT_SUBVERSION); fFile.WriteLine("%d:" ... REPLAY_FORMAT_FINAL, REPLAY_FORMAT_SUBVERSION);

View File

@ -1083,11 +1083,17 @@ public void SQL_GetWRHolders_Callback(Database db, DBResultSet results, const ch
int type = results.FetchInt(3); int type = results.FetchInt(3);
if (type == 0) if (type == 0)
{
gI_WRHolders[track][style] = total; gI_WRHolders[track][style] = total;
}
else if (type == 1) else if (type == 1)
{
gI_WRHoldersAll = total; gI_WRHoldersAll = total;
}
else if (type == 2) else if (type == 2)
{
gI_WRHoldersCvar = total; gI_WRHoldersCvar = total;
}
} }
} }

View File

@ -3005,7 +3005,7 @@ public void StartTouchPost(int entity, int other)
char special[sizeof(stylestrings_t::sSpecialString)]; char special[sizeof(stylestrings_t::sSpecialString)];
Shavit_GetStyleStrings(Shavit_GetBhopStyle(other), sSpecialString, special, sizeof(special)); Shavit_GetStyleStrings(Shavit_GetBhopStyle(other), sSpecialString, special, sizeof(special));
if(status != Timer_Stopped && Shavit_GetClientTrack(other) == gA_ZoneCache[gI_EntityZone[entity]].iZoneTrack && (num > gI_LastStage[other] || StrContains(special, "segments") != -1)) if(status != Timer_Stopped && Shavit_GetClientTrack(other) == gA_ZoneCache[gI_EntityZone[entity]].iZoneTrack && (num > gI_LastStage[other] || StrContains(special, "segments") != -1 || StrContains(special, "TAS") != -1))
{ {
gI_LastStage[other] = num; gI_LastStage[other] = num;
char sTime[32]; char sTime[32];