Kp
b35ef80a0f
Reduce global lookups
2015-11-01 21:15:38 +00:00
Kp
bab5f5f1be
Reduce env lookups
2015-11-01 21:15:38 +00:00
Kp
add7a80bfc
Fix binding mouse button to arm fusion/omega cannon
...
Commit 3adc5fe77a
added the ability to
bind mouse buttons to change weapons, but a copying error bound the
fusion/omega entry to joystick instead of mouse. Switch it to mouse as
clearly intended.
This fix is needed for any commit with the underlying feature, but only
applies cleanly to 0.58.1 after applying cleanup commits:
00381b2652
("Abstract out weapon names")
d035fb258a
("Remove unused kc_item->id")
fc1e00dae6
("Pre-compute labelx+inputx")
a4f3c93247
("Separate mutable and const kconfig data")
953a1888d7
("Combine state pointer and count pointer")
2bd302cddd
("Move Controls ubyte values into substructure")
ff8db8d39e
("Reduce relocations for Controls members")
593d0b25ff
("Remove duplicate kconfig labels")
dc36ee3ab3
("Store kconfig labels separately")
Fixes: 3adc5fe77a
("Saving weapon keys in PLX like in D1X-Rebirth" ...)
2015-11-01 21:15:38 +00:00
Kp
3a4adbc917
Let kconfig skip zero-width kc_item cells
2015-11-01 21:15:38 +00:00
Kp
545b71c1cc
Use enum class for kconfig subtype
2015-11-01 21:15:38 +00:00
Kp
b937c732a8
Add stub __attribute_always_inline to VS2013 header
2015-10-30 02:52:57 +00:00
Kp
47ebd05bc3
Use ?: for homing warning gauge
2015-10-30 02:52:57 +00:00
Kp
df5e02aed0
Use macro get_local_player_invulnerable_time for player's invulnerable_time
2015-10-30 02:52:56 +00:00
Kp
0285efe49d
Use macro get_local_player_cloak_time for player's cloak_time
2015-10-30 02:52:56 +00:00
Kp
17b8b64980
Use macro get_local_player_flags for player's flags
2015-10-30 02:52:56 +00:00
Kp
92f78caf22
Use macro get_local_player_vulcan_ammo for player's vulcan_ammo
2015-10-30 02:52:56 +00:00
Kp
dc5dfb80e8
Use macro get_local_player_secondary_ammo for player's secondary_ammo
2015-10-30 02:52:56 +00:00
Kp
ea5b7a08c1
Use macro get_local_player_energy for local player's energy
2015-10-30 02:52:55 +00:00
Kp
3ffd207e44
Use macro get_local_player_shields for local player's shields
2015-10-30 02:52:55 +00:00
Kp
f07e08fa2f
Move netgame_info::players to end
...
This saves ~200 bytes of text.
2015-10-30 02:52:55 +00:00
Kp
85ed489642
Use ?: for multi sounds
2015-10-30 02:52:55 +00:00
Kp
731e287329
Clean up trailing whitespace on rank strings
2015-10-30 02:52:55 +00:00
Kp
1af81af4ec
Reorder show_HUD_names bool tests
...
This improves the generated code by ~60 instructions.
2015-10-30 02:52:55 +00:00
Kp
f50189dc23
Factor out gauge box color computation
2015-10-30 02:52:55 +00:00
Kp
070444157e
Use type safe player flags
2015-10-30 02:52:55 +00:00
Kp
7ac2840bfe
Rename Netgame.player_flags to .net_player_flags
...
The simple name conflicts with an upcoming change.
2015-10-30 02:52:54 +00:00
Kp
cc345aa83d
Simplify demo cloak/invul processing
2015-10-30 02:52:54 +00:00
Kp
6b831b08ec
Update demo caching variables sooner
2015-10-30 02:52:54 +00:00
Kp
9a6d027e63
Factor out weapon cycling
2015-10-30 02:52:54 +00:00
Kp
ff2c88c498
Factor out cockpit/statusbar key gauges
2015-10-30 02:52:54 +00:00
Kp
3ea0470aa7
Fix eobject to use an in-array object
2015-10-30 02:52:54 +00:00
Kp
c1f8497b33
Simplify editor group print
2015-10-30 02:52:54 +00:00
Kp
64c161c4b2
Remove unnecessary zero of .invulnerable_time
2015-10-30 02:52:54 +00:00
Kp
4882558d6e
Remove unnecessary zero of .cloak_time
2015-10-30 02:52:54 +00:00
Kp
e130ea7b36
Remove unnecessary secondary_weapon_flags
2015-10-30 02:52:53 +00:00
Kp
ea3c4a8986
Switch const multi text to array<>
2015-10-29 03:01:43 +00:00
Kp
e86e1a882a
Combine adjacent env.Append calls
2015-10-29 03:01:42 +00:00
Kp
fd51188e57
Simplify DXXCommon instance counter
2015-10-29 03:01:42 +00:00
Kp
9c4a4e3cf8
Remove unnecessary __init__ methods
2015-10-28 02:44:36 +00:00
Kp
def268faf9
Combine lazy object caches
2015-10-28 02:44:36 +00:00
Kp
edea687627
Remove HAVE_STRUCT_TIMEVAL
...
SConstruct defines it for all platforms. It is only false on Mac OS 9,
which is no longer supported.
2015-10-27 03:04:49 +00:00
Kp
e7c65dbc3f
Use property for LinuxPlatformSettings ogllibs
...
It is only called once per instance, so caching it as an instance
value is not helpful. Change it to a property so that __init__ can be
removed.
2015-10-27 03:04:49 +00:00
zico
bd391e2363
Reduced the level rendering from 3 passes to 2 while maintinaing the original function (may need optimization, tho); Rendering level parts with transparency effects (force fields, energy center sparks) in same pass as objects to prevent them from making objects invisible behind them; Changed object sorting to they render back to front to prevent rendering issues (robots disappearing behind explosions, further away powerup rendered over a closer one, etc)
2015-10-25 18:16:34 +01:00
Kp
2a713567a0
Guard create_*vert*lists in D1||D2
...
check_header_includes=1 fails when create_*vert*lists is tested in
common code. Preprocess it out when built for common.
2015-10-24 03:13:11 +00:00
Kp
2ac6c0e72b
Factor out red/gold/blue key messages
2015-10-24 03:13:11 +00:00
Kp
1c84b7ab9c
Use enum class for wall_hit_process_t
2015-10-24 03:13:11 +00:00
Kp
0c303bc539
Use ?: for drop_player_eggs flag
2015-10-24 03:13:11 +00:00
Kp
5def3b0733
Fix Valgrind warning in PHYSFSX init
2015-10-24 03:13:11 +00:00
Kp
8b61b9f0db
Remove unused symbols
2015-10-24 03:13:11 +00:00
Kp
a4eda5e6f7
Include commented tool versions in sconf tests
...
Encourage SCons not to reuse test results when the printed version
strings have changed.
2015-10-24 03:13:11 +00:00
Kp
cf9f777187
Simplify select_tmap
...
Remove unreachable nullptr case. Use case-sensitive comparison. Remove
unsupported entry i386 from documentation.
2015-10-21 02:45:44 +00:00
Kp
48af374924
Reduce direct use of Segments[]
2015-10-21 02:45:43 +00:00
Kp
21057db809
Move DbgSafelog, DbgVerbose to CArg
2015-10-18 21:01:21 +00:00
Kp
b0541daf19
Remove dead code in D1 demo fixup
2015-10-18 21:01:21 +00:00
Kp
682b845b9d
Reorder gameseg distance tests
2015-10-18 21:01:20 +00:00