Christoph Oelckers
5700d25120
- minor cleanup on scaling code
2022-10-30 16:51:25 +01:00
Mitchell Richters
befa5a933c
- Duke: Fix questionable setup in previous commit to interpolate SE_20_STRETCH_BRIDGE
.
2022-10-30 16:51:25 +01:00
Mitchell Richters
05a05c6406
- Duke: Fix interpolation for SE_20_STRETCH_BRIDGE
, such as curtains in E1L1/2/3.
...
* I'm not sure if there's a better way to handle this, but I had to do the nested `twoSided()` checks to ensure all walls of E1L3's curtains in the execution chair viewing room interpolated as expected.
2022-10-30 16:51:24 +01:00
Mitchell Richters
b3943a0c04
- Duke: Maintain x/y/z velocity when falling through a portal, such as E1L1's air duct.
2022-10-30 16:51:24 +01:00
Mitchell Richters
7e7c1b1179
- Duke: Fix hitching going up/down on SE17 elevators, and Z interpolation while jumping, etc.
2022-10-30 16:51:24 +01:00
Mitchell Richters
ffc16635b2
- Blood: Make bobPhase
a proper float.
2022-10-30 16:51:24 +01:00
Mitchell Richters
80f4124b17
- Duke: Fix integer division in shootrpg()
.
...
* Stems from initial floatification in `- floatified Duke's shootrpg`.
2022-10-30 16:51:23 +01:00
Christoph Oelckers
520d838a8c
- use Scale wrappers in global code and parts of Duke.
2022-10-30 16:51:23 +01:00
Christoph Oelckers
1c82d19d37
- handled all remaining x/yrepeat in Blood.
2022-10-30 16:51:23 +01:00
Christoph Oelckers
1d48b0776e
- cleanup in Blood plus repeats in aiunicult.cpp
...
* removed the picWidth/Height functions because their one use can be easily inlined
* deleted the unused initvals in GENDUDEEXTRA
2022-10-30 16:51:23 +01:00
Christoph Oelckers
1085752e01
- added more Scale wrappers to spritetype.
2022-10-30 16:51:23 +01:00
Christoph Oelckers
8a8ef22e53
- mostly '>' comparisons with scale values.
2022-10-30 16:51:22 +01:00
Christoph Oelckers
f5e1709c37
- renamed yet another bunch of repeat variables.
2022-10-30 16:51:22 +01:00
Christoph Oelckers
78bf99434e
- removed some pointless comments.
2022-10-30 16:51:22 +01:00
Christoph Oelckers
4a3ff0bd50
- fixed two bad scale checks in Blood's fat zombie.
2022-10-30 16:51:22 +01:00
Christoph Oelckers
6a3a811a42
- repeats in the wall sprite renderer
2022-10-30 16:51:22 +01:00
Christoph Oelckers
a11a366697
- some automatic replacements.
2022-10-30 16:51:21 +01:00
Christoph Oelckers
730c0ef66d
- lots of repeats in RR's spawn code.
2022-10-30 16:51:21 +01:00
Christoph Oelckers
9d8df61324
- got rid of the int version of GetOffsetAndHeight.
2022-10-30 16:51:21 +01:00
Christoph Oelckers
a6fb831894
- scaling demessification in the voxel renderer
...
(needs thorough testing!!!)
2022-10-30 16:51:21 +01:00
Christoph Oelckers
91c318b708
- renamed most non-sprite xrepeat and yrepeat as refactpring aid.
...
These will be renamed back later but now they create too much search noise.
A few local variables have been permanently renamed to scale*.
2022-10-30 16:51:20 +01:00
Christoph Oelckers
c678298141
- wrap repeats in the renderer.
2022-10-30 16:51:20 +01:00
Christoph Oelckers
cf5d787f40
- manual repeats in Duke.
2022-10-30 16:51:20 +01:00
Christoph Oelckers
adb3cb888e
- manual repeats in Blood.
2022-10-30 16:51:20 +01:00
Christoph Oelckers
2589e7030c
- more repeats replaced by SetScale.
2022-10-30 16:51:19 +01:00
Mitchell Richters
b004de9fb0
- Remove leftover x/y repeats from - several manual replacements with SetScale.
.
2022-10-30 16:51:19 +01:00
Christoph Oelckers
71d61b26df
- 34 more uses of SetScale.
2022-10-30 16:51:19 +01:00
Christoph Oelckers
e60fafec52
- got rid of most REPEAT_SCALE factors.
2022-10-30 16:51:19 +01:00
Christoph Oelckers
8c308c8d3e
- added ScaleY method to spritetype and used it to get rid of a large amount of 'yrepeat * REPEAT_SCALE'
2022-10-30 16:51:18 +01:00
Christoph Oelckers
8d1626de02
- yet more SetScale uses.
2022-10-30 16:51:18 +01:00
Christoph Oelckers
e6a97157d7
- several manual replacements with SetScale.
2022-10-30 16:51:18 +01:00
Christoph Oelckers
d8fac32459
- more simple SetScale replacements.
2022-10-30 16:51:17 +01:00
Christoph Oelckers
86d6ba43d4
- more automatic SetScale replacement, plus all of SetScale(0.5, 0.5);
2022-10-30 16:51:17 +01:00
Christoph Oelckers
c7c3b2a20c
- added a SetScale method to spritetype and used it for all places setting x/yrepeat to 0.
2022-10-30 16:51:17 +01:00
Christoph Oelckers
35fbc634de
- silence some warnings
2022-10-30 16:51:17 +01:00
Christoph Oelckers
30112e1289
- deal with clipdist in nnexts
2022-10-30 16:51:17 +01:00
Christoph Oelckers
9f19a1315b
- replaced most native_clipdist() calls
...
Only those in nnext using internal int storage remain.
2022-10-30 16:51:16 +01:00
Christoph Oelckers
e80c32cfd4
- handle magic clipdist values
2022-10-30 16:51:16 +01:00
Christoph Oelckers
a6e35edc6c
- replaced all set_native_clipdist
...
Note that truncation has to be preserved here to ensure the size stays the same as before so the MulScales were not resolved into their factors.
2022-10-30 16:51:16 +01:00
Christoph Oelckers
84dfe98f17
- replaced all set_native_clipdist in Blood
2022-10-30 16:51:16 +01:00
Christoph Oelckers
ed5b35453a
- ';;' cleanup
2022-10-30 16:51:15 +01:00
Christoph Oelckers
7ed45d713a
- refactor all oclipdist uses
2022-10-30 16:51:15 +01:00
Christoph Oelckers
d22c473c31
- manual set_const_clipdist replacements
2022-10-30 16:51:15 +01:00
Christoph Oelckers
48fda0cafd
- second batch of set_const_clipdist replacements
2022-10-30 16:51:15 +01:00
Christoph Oelckers
03d6826fce
- first batch of set_const_clipdist replacements
2022-10-30 16:51:14 +01:00
Christoph Oelckers
4af4983d3e
- floatified clipdist and replaced fClipdist wrapper.
...
This uses a new variable because a few things use clipdist as a flag byte
2022-10-30 16:51:14 +01:00
Christoph Oelckers
3577b53c4d
- GetWallSpritePosition also benefits from using .dot
2022-10-30 16:51:14 +01:00
Christoph Oelckers
f1baf5c69c
- use dot product for getslopeval as well
2022-10-30 16:51:13 +01:00
Christoph Oelckers
02f1f79333
- use .dot() for calculating slopes
2022-10-30 16:51:13 +01:00
Christoph Oelckers
e83d0930bf
- clean out the unused sintable stuff
2022-10-30 16:51:13 +01:00