mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-08 09:51:45 +00:00
Use val instead of pos?
Let's see if this fixes it...
This commit is contained in:
parent
63861540cb
commit
88af2ff3bc
2 changed files with 17 additions and 4 deletions
|
|
@ -64,7 +64,7 @@ JoyType_t Joystick4;
|
||||||
#define SAVEGAMESIZE (1024)
|
#define SAVEGAMESIZE (1024)
|
||||||
|
|
||||||
// SRB2kart
|
// SRB2kart
|
||||||
char gamedatafilename[64] = "kartdata.dat";
|
char gamedatafilename[64] = "vr.dat";
|
||||||
char timeattackfolder[64] = "kart";
|
char timeattackfolder[64] = "kart";
|
||||||
char customversionstring[32] = "\0";
|
char customversionstring[32] = "\0";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -336,22 +336,35 @@ static void Y_CalculateMatchData(UINT8 rankingsmode, void (*comparison)(INT32))
|
||||||
|
|
||||||
for (j = 0; j < numplayersingame; j++)
|
for (j = 0; j < numplayersingame; j++)
|
||||||
{
|
{
|
||||||
|
boolean won = false;
|
||||||
|
|
||||||
if (i == j) // Same person
|
if (i == j) // Same person
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (data.match.pos[i] == data.match.pos[j]) // Tie -- neither get any points for this match up.
|
if (data.match.val[i] == data.match.val[j]) // Tie -- neither get any points for this match up.
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
theirpower = 5000;
|
theirpower = 5000;
|
||||||
if (clientpowerlevels[j][powertype] != 0) // No power level acts as 5000 (used for splitscreen guests)
|
if (clientpowerlevels[j][powertype] != 0) // No power level acts as 5000 (used for splitscreen guests)
|
||||||
theirpower = clientpowerlevels[j][powertype];
|
theirpower = clientpowerlevels[j][powertype];
|
||||||
|
|
||||||
if (data.match.pos[i] < data.match.pos[j]) // This player won!
|
if (G_RaceGametype())
|
||||||
|
{
|
||||||
|
if (data.match.val[i] < data.match.val[j])
|
||||||
|
won = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (data.match.val[i] > data.match.val[j])
|
||||||
|
won = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (won) // This player won!
|
||||||
{
|
{
|
||||||
diff = theirpower - yourpower;
|
diff = theirpower - yourpower;
|
||||||
inc += K_CalculatePowerLevelInc(diff);
|
inc += K_CalculatePowerLevelInc(diff);
|
||||||
}
|
}
|
||||||
else if (data.match.pos[i] > data.match.pos[j]) // This player lost...
|
else // This player lost...
|
||||||
{
|
{
|
||||||
diff = yourpower - theirpower;
|
diff = yourpower - theirpower;
|
||||||
inc -= K_CalculatePowerLevelInc(diff);
|
inc -= K_CalculatePowerLevelInc(diff);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue