Commit graph

832 commits

Author SHA1 Message Date
Kp b8ee7b23df Use std::swap in promote(mle) 2014-08-16 04:18:49 +00:00
Kp 3ecaf15d58 Add braces to fix gcc 4.6 build 2014-08-14 02:34:15 +00:00
Kp d6b81d2fe3 Deduce create_bfs_list max_segs 2014-08-13 03:19:13 +00:00
Kp c3086f0875 Split out boss action messages 2014-08-13 03:19:13 +00:00
Kp 915b78b5e1 Add vvalptridx_t for always-valid valptridx values 2014-08-13 03:19:12 +00:00
Kp 125d9257be Use special type names for segment/object numbers 2014-08-13 02:57:12 +00:00
Kp 2764e3652a Propagate use of objptridx_t 2014-08-13 02:56:58 +00:00
Kp 81c6f27f44 Change point_seg::segnum to short 2014-08-13 02:56:58 +00:00
Kp 276d70d4c9 Move find_connect_side validation into find_seg_side 2014-08-12 03:08:39 +00:00
Kp 3bc5d4ad23 Use std::accumulate for compute_seg_dynamic_light 2014-08-12 03:06:53 +00:00
Kp f492b736dd Use range_for to iterate segment codes 2014-08-12 03:01:43 +00:00
Kp 2ae57a8529 Use array<> for find_joining_side_norms edge_verts 2014-08-12 02:58:08 +00:00
Kp 7888c13b6b Write point_seg carefully 2014-08-12 02:55:23 +00:00
Kp cec32ce3f5 Move render state arrays onto stack 2014-08-12 02:28:03 +00:00
Kp 0ae2345cf4 Remove unnecessary throw
On error, partial_range will throw.
2014-08-09 21:22:25 +00:00
Kp d0db98fe01 Use array<> for netgame_info members 2014-08-09 16:43:55 +00:00
Kp 125218aa5a Fix partial_range exception sending game information
Netgame.players is [MAX_PLAYERS], not [MAX_PLAYERS+4].
2014-08-09 04:14:54 +00:00
Kp c2fb6c728f Fix D1 homing weapon regression
01f1553 intended to make D1 not treat proximity mines as chaff.
Instead, it removed the test for whether the object was an acceptable
type.  As a result, all homing weapons lock onto the nearest
non-excluded object of any type, which is the homing weapon itself.  It
then flies in a straight line trying to catch itself.
2014-08-08 03:06:31 +00:00
Kp 79d2c968a3 Use array<> for Players 2014-08-08 03:02:59 +00:00
Kp 597a55558f Use array<> for Segment_points 2014-08-08 03:02:43 +00:00
Kp c8af6bba86 Throw on invalid homing_flag 2014-08-08 03:02:32 +00:00
Kp 4029de77b0 Fix array underrun in redraw_messagestream 2014-08-08 02:54:50 +00:00
Kp 52527e48ee Optimize out unused g3_set_special_render arguments 2014-08-08 02:52:35 +00:00
Kp 4ec010ec75 Pack render side edges 2014-08-08 02:51:31 +00:00
Kp 1c064b8efb Remove unused find_hitpoint_uv l parameter 2014-08-08 02:51:02 +00:00
Kp b276590998 Change gr_fade_table to array<array<>> 2014-08-08 02:50:27 +00:00
Kp f47aa29cd9 Use color_t for color values 2014-08-08 02:07:47 +00:00
Kp 50f74d8216 Use remove_if to clean up junk point_seg 2014-08-08 02:06:38 +00:00
Kp 019c8dc342 Use unique_ptr for automap->edges 2014-08-07 03:17:37 +00:00
Kp 8d727b31b1 Use unique_ptr for automap->drawingListBright 2014-08-07 03:12:02 +00:00
Kp 4acbb40ad7 Use enum for window event result 2014-08-07 02:47:48 +00:00
Kp 553f17a3be Initialize MarkerObject properly 2014-08-05 03:10:04 +00:00
Kp e30af52b91 Improve collision detection switch 2014-08-04 03:07:06 +00:00
Kp ea8fbe5d7b Use object helper to iterate in render_segment 2014-08-03 03:17:34 +00:00
Kp 2246761818 Use object helper to iterate in paging_touch_segment 2014-08-03 03:17:34 +00:00
Kp 4702727a2f Use object helper to iterate in powerup_grab_cheat_all 2014-08-03 03:17:34 +00:00
Kp e9c5a64c7e Use object helper to iterate in fvi 2014-08-03 03:17:34 +00:00
Kp 50fa311e71 Use object helper to iterate in check_object_object_intersection 2014-08-03 03:17:34 +00:00
Kp d536832239 Fix D1 exception when killed by materialization center
objptridx_t rejects NULL pointers
2014-08-02 23:17:15 +00:00
Kp b29f2ef7bd Replace hashtable with std::map 2014-08-02 00:46:56 +00:00
Kp b732be702a Fix mismatched new/free 2014-08-01 03:34:08 +00:00
Kp 7133d75698 Propagate loop variable to silence gcc 4.6 warning
Suppress warning about changed variable scope under new ISO C++ rules.
2014-08-01 03:34:08 +00:00
Kp db2dc1ed38 Reduce newdemo_read_frame_information segnum scope
At broad scope, gcc complains about potential uninitialized usage.
2014-08-01 03:34:08 +00:00
Kp 2550f635a9 Eliminate temporary button in EVENT_MOUSE_BUTTON_UP 2014-07-30 03:15:06 +00:00
Kp 33bf7b6e12 Use constant scan labels 2014-07-30 03:06:41 +00:00
Kp 2c8eca5229 Use constant status 2014-07-30 03:06:41 +00:00
Kp 4fadbbc92c Replace render globals with const 2014-07-30 03:06:41 +00:00
Kp 6d3850b6c1 Use object helper to iterate over render segments 2014-07-30 03:06:41 +00:00
Kp 4151a6989b Use object helper to iterate over fuelcen segments 2014-07-30 03:06:41 +00:00
Kp 6a4ffd84a1 Use object helper to iterate over fireball segments 2014-07-30 03:06:41 +00:00