Kp
6a3ded191f
Move EDITOR to dxxsconf.h; rename to DXX_USE_EDITOR
...
Rename symbol EDITOR to DXX_USE_EDITOR to show that it is a DXX
symbol, not one inherited from a library. Move it to dxxsconf.h to
shorten the command line.
This is a mostly automated transform, but the changes to SConstruct were
manual.
git grep -wl EDITOR -- '*.h' '*.cpp' | xargs sed -i -e 's/^\s*#ifdef \(EDITOR\)\>/#if DXX_USE_\1/' -e 's/\s*#\(el\)\?if \(.*\)defined(\(EDITOR\))/#\1if \2DXX_USE_\3/' -e 's/^\s*#ifndef \(EDITOR\)\>/#if !DXX_USE_\1/'
2016-09-11 18:49:16 +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
8a46462846
Move lavafall_hiss_playing into player_info
2016-07-24 04:04:25 +00:00
Kp
8fef6a07b4
Pass const object_base to obj_unlink
2016-07-23 04:10:43 +00:00
Kp
3272caed7d
Cache reference to local player energy
2016-07-03 00:54:16 +00:00
Kp
15f2471be0
Cache reference to local player shields
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
d31f05d89c
Pass object_base &to spin_object
2016-04-23 17:59:47 +00:00
Kp
d3653c92d8
Pass object_base &to start_player_death_sequence
2016-04-23 17:59:47 +00:00
Kp
2188542f2e
Pass object &to set_robot_location_info
2016-04-23 17:59:47 +00:00
Kp
e4d1956674
Pass object_base &to obj_detach_one
2016-04-23 17:59:47 +00:00
Kp
5e734d8f38
Pass object_base &to obj_detach_all
2016-04-23 17:59:47 +00:00
Kp
89eb173013
Move draw_object_blob to namespace dcx
2016-04-06 03:34:14 +00:00
Kp
c2905bda23
Move check_warn_object_type to namespace dcx
2016-04-06 03:34:13 +00:00
Kp
b5afcc4605
Combine draw_object_blob calls to g3_draw_bitmap
2016-04-06 03:34:13 +00:00
Kp
5b3a36e6b8
Remove valptridx operator-(P *, A &)
2016-04-06 03:34:13 +00:00
Kp
aaaabfeb31
Fix count of hostages lost
...
Reported-by: Mako88 <https://github.com/dxx-rebirth/dxx-rebirth/issues/186 >
Fixes: c0ca1248fd
("Simplify hostage lost message")
2016-03-09 02:18:52 +00:00
zico
901a554e96
New powerup management code: Addeed functions and packet type to keep track of original and current level inventory as well as player and thief inventories. Calling maybe_drop_net_powerup() for all ammo based weapons except Concussion missiles. Limiting maybe_drop_net_powerup() to only spawn items missing from initial level inventory. Added function to let host respawn items that were lost for whatever reason. Expanded maybe_drop_net_powerup() and child functions to be able to drop item based on a random player. Changed back maybe_drop_secondary_weapon_egg() to its original behavior, dropping 3 of each type max.
2016-02-25 14:11:08 +01:00
Kp
f4e1ebb576
Remove unnecessary gr_setcolor calls
2016-02-12 04:02:28 +00:00
Kp
553b313099
Use vwallptr
2016-02-12 04:02:28 +00:00
Kp
2fd6a425b0
Remove highest_valid
2016-02-12 04:02:28 +00:00
Kp
b57f08c798
Use partial_const_range
2016-02-12 04:02:28 +00:00
Kp
ec025d4e88
Pass common highest_valid to vptr factory
2016-02-06 22:12:54 +00:00
Kp
74dfa29d31
Convert most Trigger references to valptridx
2016-02-06 22:12:54 +00:00
Kp
e283a22709
Use enum class for check_volatile_wall
2016-01-29 04:05:47 +00:00
Kp
a3ae630829
Remove default argument for basic_ptridx(index)
2016-01-09 16:38:14 +00:00
Kp
9ceedc96a8
Propagate valptridx requirement up
2016-01-09 16:38:14 +00:00
Kp
cefc79f869
Construct find_point_seg segptridx explicitly
2016-01-09 16:38:13 +00:00
Kp
a32d9f01a1
Remove return value truncation in find_object_seg
2016-01-09 16:38:13 +00:00
Kp
98f5afa9f8
Remove default argument for basic_ptr(pointer,array &)
2016-01-09 16:38:13 +00:00
Kp
7064fcccba
Skip setting segnum/signature of non-objects
2016-01-09 16:38:12 +00:00
Kp
f48eddeece
Block direct changes to Highest_object_index
...
Route updates through helper functions.
2016-01-09 16:38:12 +00:00
Kp
1cd77754ee
Remove write-only Highest_ever_object_index
2016-01-09 16:38:12 +00:00
Kp
410b09a330
Expand macro Player_exploded
2016-01-09 16:38:10 +00:00
Kp
47190be8e9
Fold Player_exploded into Player_dead_state
2016-01-09 16:38:10 +00:00
Kp
5ba5910e7a
Use symbolic side_none for testing find_connect_side result
2016-01-03 20:21:35 +00:00
Kp
a892c24bc2
Simplify object phys_info zero
2015-12-22 04:18:51 +00:00
Kp
a60c9683d3
Remove write-only Unused_object_slots
2015-12-22 04:18:51 +00:00
Kp
e8c34be843
Use v*ptr* factories with highest_valid
2015-12-22 04:18:51 +00:00
Kp
d479819931
Use absolute_sibling to reduce global references for ptridx
2015-12-22 04:18:51 +00:00
Kp
db9fb0ed42
Move more symbols into namespace dcx/dsx
2015-12-22 04:18:50 +00:00
Kp
2b51578ba6
Use enum class for Player_dead_state (formerly Player_is_dead)
2015-12-15 04:09:35 +00:00
Kp
26e948d5f1
Uninline namespace dsx
2015-12-13 18:00:49 +00:00
Kp
e549f3451e
Use inline namespace dsx for object.h
2015-12-05 22:57:25 +00:00
Kp
ed55763603
Remove unused symbols
2015-12-04 03:36:31 +00:00
Kp
708dc0a7e1
Use vobjptr/vcobjptr for more Objects[] access
2015-12-03 03:26:49 +00:00
Kp
b683b4cc68
Scope weapon type
2015-12-03 03:26:49 +00:00
Kp
0c75aecc45
Check most uses of object id
2015-11-27 03:56:13 +00:00
Kp
bdbc129d14
Optimize out some object type warnings
2015-11-26 02:56:56 +00:00
Kp
9f26e2211e
Warn on invalid object ID access
2015-11-26 02:56:56 +00:00