mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-21 23:08:49 -05:00
Correct shear aim
This commit is contained in:
parent
ade73ac403
commit
38774c8b6c
@ -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
2
game.h
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user