Skip to content

Commit 69d9492

Browse files
committed
Update game_server.cpp
1 parent 95841d3 commit 69d9492

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Network/game_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ void GameServer::ProcessFiring(PlayerData& shooter, uint8_t shooterId)
505505
// Cast ray from eye position
506506
Float3 eyePos = {
507507
shooter.state.position.x,
508-
shooter.state.position.y + PLAYER_HEIGHT - 0.3f, // 1.7m eye height
508+
shooter.state.position.y + PLAYER_HEIGHT * 0.75f, // 1.5m eye height (match client camera)
509509
shooter.state.position.z
510510
};
511511
Float3 rayDir = ServerRaycast::DirectionFromYawPitch(

0 commit comments

Comments
 (0)