mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
brackets and oversights
This commit is contained in:
parent
3df3943dea
commit
5f59c57c4f
@ -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);
|
||||
|
||||
@ -1083,12 +1083,18 @@ 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)
|
||||
|
||||
@ -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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user