MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Vehicle_Target_Set

Method Vehicle_Target_Set

Source/Fodder.cpp:16501–16521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16499}
16500
16501void cFodder::Vehicle_Target_Set() {
16502
16503 if (Mouse_Button_Right_Toggled() < 0)
16504 return;
16505
16506 sSprite* Vehicle = mSquad_CurrentVehicle;
16507 Vehicle->field_54 = -1;
16508
16509 int16 PosX = mMouseX;
16510 int16 PosY = mMouseY;
16511 PosX += mCameraX >> 16;
16512 PosY += mCameraY >> 16;
16513 PosX -= 0x10;
16514
16515 if (!PosX)
16516 PosX = 1;
16517
16518 PosY -= 8;
16519 Vehicle->field_2E = PosX;
16520 Vehicle->field_30 = PosY;
16521}
16522
16523void cFodder::String_CalculateWidth(int32 pPosX, const uint8* pWidths, const std::string& pString) {
16524

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected