Fix shootline in Third Mode View

master
MoNTE48 2020-09-25 15:44:33 +02:00
parent 59e0c4947e
commit 515213de92
1 changed files with 3 additions and 0 deletions

View File

@ -3598,6 +3598,9 @@ void Game::processPlayerInteraction(f32 dtime, bool show_hud, bool show_debug)
core::line3d<f32> shootline;
if (camera->getCameraMode() > CAMERA_MODE_FIRST)
if (d > 0) d += 1;
if (camera->getCameraMode() != CAMERA_MODE_THIRD_FRONT) {
shootline = core::line3d<f32>(camera_position,
camera_position + camera_direction * BS * d);