mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-29 12:40:40 +00:00
Minor mistakes on my part
This commit is contained in:
parent
685ccf53cc
commit
3dc02a4eb4
2 changed files with 9 additions and 9 deletions
12
src/k_kart.c
12
src/k_kart.c
|
@ -1109,16 +1109,16 @@ void K_KartBouncing(mobj_t *mobj1, mobj_t *mobj2, boolean bounce, boolean solid)
|
|||
fixed_t nx = FixedDiv(distx, dist);
|
||||
fixed_t ny = FixedDiv(disty, dist);
|
||||
|
||||
if (P_AproxDistance(distx, disty) < 3*mobj1->radius/4)
|
||||
if (P_AproxDistance(distx, disty) < (3*mobj1->radius)/4)
|
||||
{
|
||||
distx = FixedMul(mobj1->radius/2, nx);
|
||||
disty = FixedMul(mobj1->radius/2, ny);
|
||||
distx = FixedMul((3*mobj1->radius)/4, nx);
|
||||
disty = FixedMul((3*mobj1->radius)/4, ny);
|
||||
}
|
||||
|
||||
if (P_AproxDistance(distx, disty) < 3*mobj2->radius/4)
|
||||
if (P_AproxDistance(distx, disty) < (3*mobj2->radius)/4)
|
||||
{
|
||||
distx = FixedMul(mobj2->radius/2, nx);
|
||||
disty = FixedMul(mobj2->radius/2, ny);
|
||||
distx = FixedMul((3*mobj2->radius)/4, nx);
|
||||
disty = FixedMul((3*mobj2->radius)/4, ny);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -314,7 +314,7 @@ menu_t OP_SoundOptionsDef;
|
|||
static void M_ToggleSFX(INT32 choice);
|
||||
static void M_ToggleDigital(INT32 choice);
|
||||
//static void M_ToggleMIDI(INT32 choice);
|
||||
static void M_RestartAudio(void);
|
||||
//static void M_RestartAudio(void);
|
||||
|
||||
//Misc
|
||||
menu_t /*OP_DataOptionsDef,*/ OP_ScreenshotOptionsDef, OP_EraseDataDef;
|
||||
|
@ -9041,10 +9041,10 @@ static void M_ToggleDigital(INT32 choice)
|
|||
}
|
||||
}*/
|
||||
|
||||
static void M_RestartAudio(void)
|
||||
/*static void M_RestartAudio(void)
|
||||
{
|
||||
COM_ImmedExecute("restartaudio");
|
||||
}
|
||||
}*/
|
||||
|
||||
// ===============
|
||||
// VIDEO MODE MENU
|
||||
|
|
Loading…
Reference in a new issue