Kp
c9b1b5b1ec
Use susegment for WALL_IS_DOORWAY
2019-12-27 02:02:23 +00:00
Kp
519edb9e16
Move Control_center_destroyed to d_level_unique_control_center_state
2019-08-15 01:34:22 +00:00
Christian Beckhäuser
38fabd7c49
Fixed two issues with game's transparency effects feature (which I introduced when implementing it): First, Superprox mines dropped by enemies were made undesirably transparent since they have their own ID not considered by is_proximity_bomb_or_smart_mine(). Second, only some force field textures in D2X had transparency effects since the game has two different textures for force fields - eclip num 78 and 93 - but only the former was defined and used in is_alphablend_eclip()
2019-08-08 11:57:52 +02:00
Kp
f0faac66d4
Move Seismic_tremor_magnitude to d_level_unique_seismic_state
2019-08-06 02:59:41 +00:00
Kp
de77d2412b
Move Automap_visited to d_level_unique_automap_state
2019-08-06 02:59:40 +00:00
Kp
fcd2ce1b47
Fix SDL-only build of render.cpp
2019-07-07 22:00:02 +00:00
Kp
1eaaff3016
Move Difficulty_level to GameUniqueState
2019-06-27 03:26:20 +00:00
Kp
eb39a8087e
Use xrange for render loops
2019-05-04 18:27:37 +00:00
Kp
cc248602fd
Track headlights in d_level_unique_light_state
2019-04-13 18:00:07 +00:00
Kp
1008ab397e
Move Objects to d_level_unique_object_state
2019-03-03 00:31:08 +00:00
Kp
1f18db3c39
Move TmapInfo to d_level_unique_tmap_info_state
2018-12-30 00:43:59 +00:00
Kp
4c7555216a
Move Dynamic_light into LevelUniqueLightState
2018-12-30 00:43:58 +00:00
Kp
9be3c8e2e8
Move Walls into d_level_unique_wall_state
2018-12-30 00:43:58 +00:00
Kp
25baa1fbba
Remove visited2
...
It is debug-only, and has never triggered.
2018-12-30 00:43:58 +00:00
Kp
1a5844e218
Move Vertices out of global scope
2018-12-30 00:43:57 +00:00
Kp
5873ccb71e
Pass vcvertptr as context
2018-12-30 00:43:57 +00:00
Kp
f87c503618
Move Viewer_eye to local scope
2018-12-30 00:43:57 +00:00
Kp
045afc2c56
Prefer const shared_segment &
over vcsegptr_t
2018-12-30 00:43:57 +00:00
Kp
d550cfe680
Remove struct side
2018-12-13 02:31:38 +00:00
Kp
706a704c6d
Move unique_side to unique_segment
2018-12-13 02:31:38 +00:00
Kp
3b168b38fd
Make Viewer
const object *
...
Viewing should not change anything.
2018-09-25 03:44:09 +00:00
Kp
f7ad4d9b1a
Pass segments to find_point_seg
2018-09-19 02:13:30 +00:00
Kp
30a83eec41
Eliminate some uses of valptridx::operator->
2018-06-24 05:06:15 +00:00
Kp
0fd7e0e4ce
Pass context arrays to WALL_IS_DOORWAY
2018-06-24 05:06:15 +00:00
Kp
3408e3a0cd
Switch to shared_segment arguments where possible
2018-06-24 05:06:15 +00:00
Kp
6d0d68d188
Split some segment uses based on shared vs unique
...
Leave `sides` in `shared_segment` to minimize churn. Parts of it must
move to `unique_segment` before this project finishes.
2018-06-24 05:06:14 +00:00
Kp
90d2a61c1d
Simplify visited_segment_mask_t
2018-04-09 00:58:28 +00:00
Kp
6043168d51
Move various SDL-only texture mapping functions to !DXX_USE_OGL
...
The OGL build compiles, but does not use, various texture mapping
functions. Move these to be built only for the SDL build.
2017-11-01 02:01:21 +00:00
Kp
5d4d3347e6
Remove unused found_poly
2017-11-01 02:01:20 +00:00
Kp
88832e3679
Use constexpr integral_constant for various magic numbers
2017-10-14 17:10:30 +00:00
Kp
6bd653bb16
Drop useless test in render_side
...
Descent 2, but not Descent 1, had a useless test in render_side:
type == QUAD ? 0 :
type == TRI_13 ? 1 :
0
This is useless since, if type is not QUAD, the second expression will
apply. If type is QUAD, then the type is not TRI_13, so the second
expression would choose the same result as the first. The extra
comparison does not save any work, so it is useless. Remove it.
2017-09-26 04:15:50 +00:00
Kp
1641c87765
Reuse WALL_IS_DOORWAY result in render_side
2017-09-26 04:15:50 +00:00
Kp
aa56477742
Propagate objects_in arguments
2017-08-13 20:38:31 +00:00
Kp
b4899aafac
Pass vcvertptr to get_seg_masks
2017-08-11 23:43:54 +00:00
Kp
5eec2a5ce5
Use valptridx for Vertices
2017-08-11 23:43:54 +00:00
Kp
8ed8f59d6d
Fix -Wmisleading-indentation warning in SDL-only build
2017-08-11 23:43:54 +00:00
Kp
599ac9dee0
Always qualify valptridx type/factory
...
Previously, valptridx used PREFIX for allow-invalid+mutable, c#PREFIX
for allow-invalid+const, v#PREFIX for require-valid+mutable, vc#PREFIX
for require-valid+const. Convert the types, factories, and all usage
sites to specify a qualifier for all four combinations:
im#PREFIX -> allow-invalid+mutable
ic#PREFIX -> allow-invalid+const
vm#PREFIX -> require-valid+mutable
vc#PREFIX -> require-valid+const
Changes to common/include/valptridx.h and common/include/fwd-valptridx.h
are manual. All other changes are generated by:
git grep -lz -e '\(obj\|seg\|clwall\|wall\|actdoor\|trg\)\(ptridx\|ptr\|idx\)\(_t\)\?\>' | xargs -0 sed -i -e 's/\<\(v\?\)\(\(obj\|seg\|clwall\|wall\|actdoor\|trg\)\(ptridx\|ptr\|idx\)\(_t\)\?\)\>/\1m\2/g'
for the 'm' prefix and:
git grep -lz -e '\(obj\|seg\|clwall\|wall\|actdoor\|trg\)\(ptridx\|ptr\|idx\)\(_t\)\?\>' | xargs -0 sed -i -e 's/\<\([cm]\(obj\|seg\|clwall\|wall\|actdoor\|trg\)\(ptridx\|ptr\|idx\)\(_t\)\?\)\>/i&/g'
for the 'i' prefix.
2017-06-10 03:31:02 +00:00
Kp
c2d45720c3
Pass canvas to check_face
2017-04-30 16:25:18 +00:00
Kp
c12095dc4f
Remove global canvas set in find_seg_side_face
2017-04-30 16:25:18 +00:00
Kp
601562b54b
Pass canvas to render_segment
2017-04-30 16:25:18 +00:00
Kp
20b44fa856
Pass canvas to render_side
2017-04-30 16:25:18 +00:00
Kp
1b1cd54fb6
Pass canvas to check_render_face
2017-04-30 16:25:18 +00:00
Kp
ab8859562e
Pass canvas to do_render_object
2017-04-30 16:25:18 +00:00
Kp
4b4cb3a588
Pass canvas to outline_seg_side
2017-04-30 16:25:18 +00:00
Kp
17a09d83d2
Pass canvas to render_object_search
2017-03-18 18:07:39 +00:00
Kp
85eddb8d02
Pass canvas to render_endlevel_frame
2017-03-11 19:56:28 +00:00
Kp
970ce18410
Pass canvas to render_object
2017-03-11 19:56:27 +00:00
Kp
719de35484
Pass grs_bitmap to gr_pixel
2017-03-11 19:56:23 +00:00
Kp
7410ad343c
Pass canvas to render_mine
2017-03-10 01:22:28 +00:00
Kp
8542940b24
Pass canvas to render_frame
2017-03-10 01:22:27 +00:00