rename Shavit_GetReplayBotFrameCount to Shavit_GetReplayCacheFrameCount

This commit is contained in:
rtldg 2021-05-23 15:42:35 +00:00
parent fb7d36cc18
commit dbe9b9bffb
2 changed files with 5 additions and 5 deletions

View File

@ -1525,12 +1525,12 @@ native int Shavit_GetReplayButtons(int ent);
native int Shavit_GetReplayFrameCount(int style, int track);
/**
* Retrieves a replay bot's frame count.
* Retrieves the frame count from the currently running replay bot's framecache_t.
*
* @param bot Replay bot entity.
* @return Frame count.
*/
native int Shavit_GetReplayBotFrameCount(int bot);
native int Shavit_GetReplayCacheFrameCount(int bot);
/**
* Retrieves the replay data for the given style and track.
@ -2477,7 +2477,7 @@ public void __pl_shavit_SetNTVOptional()
MarkNativeAsOptional("Shavit_GetReplayButtons");
MarkNativeAsOptional("Shavit_GetClosestReplayStyle");
MarkNativeAsOptional("Shavit_SetClosestReplayStyle");
MarkNativeAsOptional("Shavit_GetReplayBotFrameCount");
MarkNativeAsOptional("Shavit_GetReplayCacheFrameCount");
MarkNativeAsOptional("Shavit_StartReplayFromFrameCache");
MarkNativeAsOptional("Shavit_StartReplayFromFile");
MarkNativeAsOptional("Shavit_GetClientLastStage");

View File

@ -278,7 +278,7 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
CreateNative("Shavit_GetReplayData", Native_GetReplayData);
CreateNative("Shavit_GetReplayFrames", Native_GetReplayFrames);
CreateNative("Shavit_GetReplayFrameCount", Native_GetReplayFrameCount);
CreateNative("Shavit_GetReplayBotFrameCount", Native_GetReplayBotFrameCount);
CreateNative("Shavit_GetReplayCacheFrameCount", Native_GetReplayCacheFrameCount);
CreateNative("Shavit_GetReplayLength", Native_GetReplayLength);
CreateNative("Shavit_GetReplayBotLength", Native_GetReplayBotLength);
CreateNative("Shavit_GetReplayName", Native_GetReplayName);
@ -1092,7 +1092,7 @@ public int Native_GetReplayFrameCount(Handle handler, int numParams)
return gA_FrameCache[GetNativeCell(1)][GetNativeCell(2)].iFrameCount;
}
public int Native_GetReplayBotFrameCount(Handle handler, int numParams)
public int Native_GetReplayCacheFrameCount(Handle handler, int numParams)
{
int bot = GetNativeCell(1);
int index = GetBotInfoIndex(bot);