Correct shear aim

This commit is contained in:
Miloslav Číž 2020-09-27 00:31:38 +02:00
parent ade73ac403
commit 38774c8b6c
3 changed files with 3 additions and 3 deletions

View File

@ -322,7 +322,7 @@
#endif
#define SFG_CAMERA_MAX_SHEAR_PIXELS \
(SFG_CAMERA_MAX_SHEAR * SFG_GAME_RESOLUTION_Y / 1024)
((SFG_CAMERA_MAX_SHEAR * SFG_GAME_RESOLUTION_Y) / 1024)
#define SFG_FONT_SIZE_SMALL \
(SFG_GAME_RESOLUTION_X / (SFG_FONT_CHARACTER_SIZE * 50))

2
game.h
View File

@ -3466,7 +3466,7 @@ void SFG_gameStepPlaying()
/* Vertical speed will be either determined by autoaim (if shearing is
off) or the camera shear value. */
RCL_Unit verticalSpeed = (SFG_game.settings & 0x04) ?
(SFG_player.camera.shear * projectileSpeed) /
(SFG_player.camera.shear * projectileSpeed * 2) / // only approximate
SFG_CAMERA_MAX_SHEAR_PIXELS
:
(projectileSpeed * SFG_autoaimVertically()) / RCL_UNITS_PER_SQUARE;

View File

@ -31,7 +31,7 @@
// #define SFG_IMMORTAL 1
// #define SFG_UNLOCK_DOOR 1
// #define SFG_REVEAL_MAP 1
// #define SFG_INFINITE_AMMO 1
#define SFG_INFINITE_AMMO 1
// #define SFG_SCREEN_RESOLUTION_X 80
// #define SFG_SCREEN_RESOLUTION_Y 64