- Duke: Pass HUD offsets to bike/moto drawers by const reference.

This commit is contained in:
Mitchell Richters 2023-04-29 15:46:02 +10:00 committed by Christoph Oelckers
parent f278a29fad
commit 312b649d93

View file

@ -78,7 +78,7 @@ void displaymasks_r(int snum, int p, double interpfrac)
//
//---------------------------------------------------------------------------
void DrawMotorCycle(int const kb, DVector2 offsets, DAngle angle, int shade, int pal)
void DrawMotorCycle(int const kb, const DVector2& offsets, DAngle angle, int shade, int pal)
{
const char* temp_kb;
if (numplayers == 1)
@ -136,7 +136,7 @@ void DrawMotorCycle(int const kb, DVector2 offsets, DAngle angle, int shade, int
//
//---------------------------------------------------------------------------
void DrawBoat(int const kb, DVector2 offsets, DAngle angle, int shade, int pal, bool notonwater)
void DrawBoat(int const kb, const DVector2& offsets, DAngle angle, int shade, int pal, bool notonwater)
{
const char* temp_kb;
int temp2, temp3;