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;
}
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);

View File

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

View File

@ -3005,7 +3005,7 @@ public void StartTouchPost(int entity, int other)
char special[sizeof(stylestrings_t::sSpecialString)];
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;
char sTime[32];