| 16254 | } |
| 16255 | |
| 16256 | void cFodder::Vehicle_Input_Handle() { |
| 16257 | |
| 16258 | if (!mButtonPressLeft) { |
| 16259 | mVehicle_Input_Disabled = false; |
| 16260 | return; |
| 16261 | } |
| 16262 | |
| 16263 | if (mVehicle_Input_Disabled) |
| 16264 | return; |
| 16265 | |
| 16266 | if (Mouse_Button_Left_Toggled() >= 0) |
| 16267 | if (sub_313CD() < 0) |
| 16268 | return; |
| 16269 | |
| 16270 | sSprite* Data20 = mSquad_Leader; |
| 16271 | |
| 16272 | if (Data20 == INVALID_SPRITE_PTR) |
| 16273 | return; |
| 16274 | int16 Data0 = mMouseX + (mCameraX >> 16); |
| 16275 | int16 Data4 = mMouseY + (mCameraY >> 16); |
| 16276 | |
| 16277 | Data0 -= 0x1C; |
| 16278 | |
| 16279 | if (Data0 < 0) |
| 16280 | Data0 = 0; |
| 16281 | Data4 += 6; |
| 16282 | if (Data4 < 0) |
| 16283 | Data4 = 0x14; |
| 16284 | |
| 16285 | if (Data4 < 0x14) |
| 16286 | Data4 = 0x14; |
| 16287 | |
| 16288 | if (Data20->field_6F >= eVehicle_Helicopter) { |
| 16289 | if (Data20->field_50 <= 8) |
| 16290 | Data4 += 0x20; |
| 16291 | } |
| 16292 | |
| 16293 | mCamera_PanTargetX = Data0; |
| 16294 | mCamera_PanTargetY = Data4; |
| 16295 | |
| 16296 | mMouse_Locked = false; |
| 16297 | |
| 16298 | Data20->field_26 = Data0; |
| 16299 | Data20->field_28 = Data4; |
| 16300 | } |
| 16301 | |
| 16302 | void cFodder::sub_311A7() { |
| 16303 | if (mSquad_Selected < 0) |
nothing calls this directly
no outgoing calls
no test coverage detected