mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
fix parameter ordering in Shavit_GetReplayBotIndex
This commit is contained in:
parent
36c395dde7
commit
fc37d22f1d
@ -1461,11 +1461,11 @@ native float Shavit_GetReplayBotFirstFrame(int entity);
|
||||
/**
|
||||
* Retrieve the replay bot's entity index.
|
||||
*
|
||||
* @param track Trakc you want. -1 if you want the central bot. If no central bot, the first bot it finds it used.
|
||||
* @param style Style you want. -1 if you want the central bot. If no central bot, the first bot it finds it used.
|
||||
* @param track Track you want. -1 if you want the central bot. If no central bot, the first bot it finds it used.
|
||||
* @return Client index for the replay bot. -1 if not found.
|
||||
*/
|
||||
native int Shavit_GetReplayBotIndex(int track, int style);
|
||||
native int Shavit_GetReplayBotIndex(int style, int track);
|
||||
|
||||
/**
|
||||
* Retrieve the style being played by the replay bot.
|
||||
|
||||
@ -764,8 +764,13 @@ public int Native_GetReplayBotCurrentFrame(Handle handler, int numParams)
|
||||
|
||||
public int Native_GetReplayBotIndex(Handle handler, int numParams)
|
||||
{
|
||||
int track = GetNativeCell(1);
|
||||
int style = GetNativeCell(2);
|
||||
int style = GetNativeCell(1);
|
||||
int track = -1;
|
||||
|
||||
if (numParams > 1)
|
||||
{
|
||||
track = GetNativeCell(2);
|
||||
}
|
||||
|
||||
if (track == -1 && style == -1 && gI_CentralBot > 0)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user