Kp
968746c0e8
Pass secondary_weapon_index_t to player_has_secondary_weapon
2016-10-02 00:34:49 +00:00
Kp
603159ec4b
Pass secondary_weapon_index_t to do_secondary_weapon_select
2016-10-02 00:34:49 +00:00
Kp
3f27b6daac
Pass player_info to CyclePrimary
2016-10-02 00:34:46 +00:00
Kp
2c37514235
Pass player_info to CycleSecondary
2016-10-02 00:34:46 +00:00
Kp
36213d9b50
Pass player_info to select_secondary_weapon
2016-10-02 00:34:46 +00:00
Kp
e3c3e39045
Pass player_info to do_primary_weapon_select
2016-10-02 00:34:46 +00:00
Kp
fe1cd6a165
Pass player_info to maybe_autoselect_primary_weapon
2016-10-02 00:34:46 +00:00
Kp
8219df8db9
Pass player_info to pick_up_secondary
2016-10-02 00:34:45 +00:00
Kp
c94cec40d0
Pass player_info to pick_up_primary
2016-10-02 00:34:45 +00:00
Kp
2bd5b80451
Pass player_info to check_to_use_primary_super_laser
2016-10-02 00:34:45 +00:00
Kp
86a4942883
Pass player_info to do_secondary_weapon_select
2016-10-02 00:34:45 +00:00
Kp
888415f086
Pass player_info to reject_unusable_secondary_weapon_select
2016-10-02 00:34:45 +00:00
Kp
dfc2584c39
Pass player_info to reject_unusable_primary_weapon_select
2016-10-02 00:34:45 +00:00
Kp
9800f856e7
Pass player_info to select_primary_weapon
2016-10-02 00:34:45 +00:00
Kp
11551abe5c
Pass player_info to non-static pick_up_vulcan_ammo
2016-10-02 00:34:44 +00:00
Kp
96651095e3
Pass player_info to DropCurrentWeapon, DropSecondaryWeapon
2016-10-02 00:34:44 +00:00
Kp
b78474edc6
Pass player_info to player_has_secondary_weapon
2016-10-02 00:34:44 +00:00
Kp
ad3a29a7eb
Pass player_info to cycle_primary_state
2016-10-02 00:34:44 +00:00
Kp
83dd51d79b
Pass player_info to player_has_primary_weapon
2016-10-02 00:34:43 +00:00
Kp
c483deb646
Change Parallax negative energy hack to avoid modifying energy
...
This will allow players to see when their energy goes negative, which
might prompt someone to report it with steps to reproduce.
2016-10-02 00:34:43 +00:00
Kp
ab89513454
Pass player_info to auto_select_primary_weapon
2016-10-02 00:34:43 +00:00
Kp
1be7344d56
Pass player_info to auto_select_secondary_weapon
2016-10-02 00:34:43 +00:00
Kp
00ccd3f6f6
Move Delayed_secondary into Secondary_weapon
2016-10-02 00:34:43 +00:00
Kp
e6b44ffef1
Pass player_info to delayed_autoselect
2016-10-02 00:34:43 +00:00
Kp
f148eee01a
Pass player powerup_flags to PLAYER_MAX_AMMO
2016-10-02 00:34:42 +00:00
Kp
fe99fe232b
Expand get_local_player_vulcan_ammo
...
It was a convenient transition macro, but its presence was always
intended to be temporary. Expand it to ease the conversion of usage
sites that already have access to local player data through a local
variable.
2016-10-02 00:34:40 +00:00
Kp
1b321ac0c6
Expand get_local_player_secondary_ammo
...
It was a convenient transition macro, but its presence was always
intended to be temporary. Expand it to ease the conversion of usage
sites that already have access to local player data through a local
variable.
2016-10-02 00:34:40 +00:00
Kp
1ab55f7551
Cast maybe_select_weapon_by_type input to weapon enum
...
All callers provide a value which must be a valid weapon number. Cast
the result to a weapon enum so that called helpers can be converted to
expect an enum.
2016-10-02 00:34:39 +00:00
Kp
198b068da6
Expand get_local_player_energy
...
It was a convenient transition macro, but its presence was always
intended to be temporary. Expand it to ease the conversion of usage
sites that already have access to local player data through a local
variable.
2016-09-11 18:49:13 +00:00
Kp
335f24ac31
Move Primary_weapon to player_info
2016-08-28 22:41:49 +00:00
Kp
bfcf851f5f
Remove default argument for get_mapped_weapon_index
...
Pass the weapon explicitly.
2016-08-28 22:41:48 +00:00
Kp
10ff2b9ea2
Change Primary_weapon_to_weapon_info key to weapon_id_type
...
Fix incorrect ID in D1 Primary_weapon_to_weapon_info. Testing suggests
that both the correct and incorrect ID produce the same results.
2016-08-28 22:41:48 +00:00
Kp
b7a5f65d5b
Move Secondary_weapon to player_info
2016-08-28 22:41:48 +00:00
Kp
e7b881e5e6
Move Secondary_last_was_super into player_info
2016-08-28 22:41:48 +00:00
Kp
adf5e57b47
Move Primary_last_was_super into player_info
2016-08-28 22:41:47 +00:00
Kp
8248438ffa
Move Omega_charge to player_info
2016-08-28 22:41:47 +00:00
Kp
ee1003f29f
Move conditionally compiled code into namespace dsx
2016-08-25 04:05:32 +00:00
Kp
1774676571
Use class to wrap Primary_weapon+Delayed_primary
2016-08-06 19:55:23 +00:00
Kp
99bbd0cf26
Mark global constants as constexpr
...
s/^const \([^*]*=.*;\)/constexpr \1/
2016-07-23 04:10:42 +00:00
Kp
c636dc4b98
Convert various static const
expressions to constexpr
2016-07-16 16:52:04 +00:00
Kp
9128ff7c35
Move Next_laser_fire_time to player_info
2016-07-06 01:54:26 +00:00
Kp
bd3db75108
Move Next_missile_fire_time to player_info
2016-07-06 01:54:26 +00:00
Kp
3fe581c84a
Cache reference to local player object
2016-07-03 00:54:16 +00:00
Kp
3272caed7d
Cache reference to local player energy
2016-07-03 00:54:16 +00:00
Kp
3b0fccd899
Cache reference to local player secondary ammo
2016-07-03 00:54:15 +00:00
Kp
2fd6a425b0
Remove highest_valid
2016-02-12 04:02:28 +00:00
Kp
9e174a0e0e
Factor out primary/secondary search/reorder
2016-01-17 17:36:48 +00:00
Kp
dd877f52c2
Remove unused weapon defines
2016-01-09 16:38:15 +00:00
Kp
86709f547b
Fix capitalization of PHYSFS_File
...
Per comment in physfs.h, the spelling PHYSFS_file is deprecated.
Replace all instances with PHYSFS_File.
2016-01-09 16:38:14 +00:00
Kp
98f5afa9f8
Remove default argument for basic_ptr(pointer,array &)
2016-01-09 16:38:13 +00:00