Kp
4460b16d0e
Simplify visited check in sphere_intersects_wall
...
Non-segments can never be visited, so check for existence first.
2013-12-22 20:56:55 +00:00
Kp
a7bd19a7ca
Convert fvi to use countarray for segment list
...
Also fixes a bug where seglist could receive wrong elements when
fvi_sub recursive call returns a type other than HIT_NONE. Bug caused
by badly named variables:
int ii;
for (ii=0;i < temp_n_segs && *n_segs < MAX_FVI_SEGS-1;)
seglist[(*n_segs)++] = temp_seglist[ii++];
The wrong counter is used for first part of the conditional, so
uninitialized elements of temp_seglist could be read back if i
(==n_segs_visited) is smaller than temp_n_segs or elements could be
skipped if i is greater than temp_n_segs.
2013-12-22 20:56:53 +00:00
Kp
038bbad26a
Rearrange headers to build under all test modes
2013-12-22 20:56:35 +00:00
Kp
58e740c0bd
Remove unused declaration of Center_names
2013-12-22 20:56:35 +00:00
Kp
c28d0c984c
Combine nearby d1/d2 guard in powerup.h
2013-12-22 20:56:35 +00:00
Kp
fe7c9fa444
Use countarray for HUD_messages
2013-12-22 20:56:33 +00:00
Kp
7894647bc9
Let PHYSFSX_puts receive optional string length
2013-12-22 20:13:22 +00:00
Kp
dce285fdb1
Pass computed message length from err_printf to con_puts
2013-12-22 20:13:05 +00:00
Kp
314950d0b2
Pass computed message length from Error to con_puts
2013-12-22 20:12:56 +00:00
Kp
84a0dcba27
Rename con_puts length template
2013-12-22 20:12:41 +00:00
Kp
7ea8507470
Move warning_printf newline handling into the function
2013-12-22 20:03:27 +00:00
Kp
80344777b0
Move err_printf newline handling into the function
2013-12-22 20:03:05 +00:00
Kp
44f1814b45
Store boss gate/teleport segments in countarray objects
2013-12-22 20:02:42 +00:00
Kp
e9693b5130
Clear SDL_Event before each poll
2013-12-22 20:02:42 +00:00
Kp
00a9fd7ac2
Split extra-view loop into helper function
2013-12-22 20:02:36 +00:00
Kp
6de986d39c
Print file offset on read error
2013-12-22 20:02:26 +00:00
Kp
88ec115c38
Show cloak/invulnerability time remaining on HUD
2013-12-22 20:02:23 +00:00
Kp
403d412000
Remove BEFORE/AFTER arguments to for_each_multiplayer_command
2013-12-22 20:02:22 +00:00
Kp
958100d676
Use visited_segment_bitarray_t for blast_nearby_glass
2013-12-22 05:33:18 +00:00
Kp
a14d729e2f
Use visited_segment_bitarray_t for set_segment_depths
2013-12-22 05:32:46 +00:00
Kp
6e1e9d0b24
Use visited_segment_bitarray_t for find_connected_distance
2013-12-22 05:32:29 +00:00
Kp
0de7bdc24c
Use visited_segment_bitarray_t in trace_segs
2013-12-22 05:32:19 +00:00
Kp
edc1f9e471
Use visited_segment_bitarray_t for pick_connected_segment
2013-12-22 05:30:44 +00:00
Kp
0978fcdab4
Use visited_segment_bitarray_t for create_path_points
2013-12-22 05:30:23 +00:00
Kp
0d7705cb05
Use visited_segment_bitarray_t for escort create_bfs_list
2013-12-22 05:29:49 +00:00
Kp
f269ed7374
Make Been_visited a local bit array
2013-12-22 05:29:25 +00:00
Kp
99626b2f34
Clear visited segment array in constructor
2013-12-22 05:27:46 +00:00
Kp
9a7185f770
Store warning segments in countarray object
2013-12-22 05:27:16 +00:00
Kp
a8e9f9f624
Store found segments in countarray object
...
Raise MAX_FOUND_SEGS to MAX_SEGMENTS to ease code reuse.
2013-12-22 01:54:15 +00:00
Kp
c31c67c587
Store selected segments in countarray object
2013-12-22 01:54:15 +00:00
Kp
4fb6990b6c
Make Stolen_items[] a C++ array
2013-12-22 01:53:26 +00:00
Kp
5b5c8a3c6a
Remove write-only variable TmapList
2013-12-22 01:16:16 +00:00
Kp
0c30fa7cf3
Whitelist MAX flash missiles as valid laser type
2013-12-22 01:15:40 +00:00
Kp
b1c5307eb1
Use array for palette_array_t
2013-12-22 00:37:36 +00:00
Kp
e9f9cb676f
Centralize palette utilities
2013-12-22 00:05:13 +00:00
Kp
a3d66a3b37
Add typedef palette_array_t for palette data
2013-12-22 00:05:13 +00:00
Kp
50b1717ae3
Use common helper to copy and bound palettes
2013-12-22 00:05:13 +00:00
Kp
11f7bc51ee
Use unsigned count of frames in a vclip
2013-12-22 00:05:13 +00:00
Kp
1e8036bd24
Split compiler.h for PCH compatibility
2013-12-21 05:12:38 +00:00
Kp
5d801ce386
Add #error diagnostics to compiler.h
2013-12-21 01:54:38 +00:00
Kp
c2f6e9f999
Remove obsolete setjmp/longjmp
2013-12-21 01:40:56 +00:00
zico
0e3e020323
merge
2013-12-20 09:22:33 +01:00
zico
9efd5ecaef
Restrict bright players feature to OBJ_PLAYER
2013-12-20 09:21:42 +01:00
Kp
1ec8057d74
Fix at-exit memory leak in digi_mixer
2013-12-20 04:41:46 +00:00
Kp
fbf1f8a658
Annotate mem_malloc/calloc/realloc as __attribute__((alloc_size))
2013-12-20 03:33:32 +00:00
Kp
737fe73dd7
Annotate mem_malloc/mem_calloc as __attribute__((malloc))
2013-12-20 03:24:39 +00:00
Kp
cf49fd0c98
Fix memory leak in audio conversion
2013-12-20 03:24:09 +00:00
Kp
f817a7e603
Fix array understep when mapping exit tunnel
2013-12-20 03:21:40 +00:00
Kp
3a8ca07132
Step powerup frame number carefully
...
Avoid relying on integer underflow when checking for moving the current
frame number outside the range of frames.
2013-12-20 03:20:05 +00:00
Kp
e4b091dd38
Make ogl_pal a ubyte (*)[256*3] to improve checking
2013-12-20 03:19:40 +00:00