Mitchell Richters
|
88e92a15a6
|
- Clean up some interpolatedvalue() calls.
|
2022-11-07 17:52:53 +11:00 |
|
Mitchell Richters
|
274899c9db
|
- Get rid of useless lerp() function I added last night for lack of C++20.
* We already have a generic linear interpolator that _I_ added, so let's use it.
|
2022-11-07 17:31:17 +11:00 |
|
Mitchell Richters
|
043ebadbee
|
- Remove 2x Normalized180() method calls on pitch where it's not needed.
* Pitch should always be +/- 90 degrees and never need normalization. If it's not, then this shouldn't mask an error caused elsewhere.
|
2022-11-07 16:53:55 +11:00 |
|
Mitchell Richters
|
c8114e7ed0
|
- Revert change to TAngle<T> 's / operator that snuck in.
|
2022-11-07 15:43:00 +11:00 |
|
Mitchell Richters
|
8ec475aec8
|
- Replace clamped off tangent values with a linear interpolation of the player's pitch.
* Gives a tangent-like ramping where it's noticeable without having to use the tangent at all.
* Had to do homegrown lerper since we're not C++20 yet.
|
2022-11-06 21:59:04 +11:00 |
|
Christoph Oelckers
|
0e113dab79
|
- added true level compatibility map processing and deleted all related map hack code.
|
2022-10-31 10:45:47 +01:00 |
|
Christoph Oelckers
|
0c87bcb91b
|
- renamed getzsofslopeptr to calcSlope and removed one redundant inline.
|
2022-10-30 16:51:40 +01:00 |
|
Christoph Oelckers
|
32b2e84fdc
|
- added episode and total episode time display to alt HUD
|
2022-10-30 16:51:40 +01:00 |
|
Christoph Oelckers
|
ff71ab14ce
|
- added a GZDoom-style alternative HUD.
So far only implemented for Blood.
|
2022-10-30 16:51:37 +01:00 |
|
Christoph Oelckers
|
98e2fecd37
|
- another bunch of type conversion warnings fixed.
the ones in the findplayer functions are not critical in singleplayer.
|
2022-10-30 16:51:35 +01:00 |
|
Christoph Oelckers
|
902f8c9706
|
- silenced lots of warnings for deliberate type conversions.
The ones in d_net.cpp are not in active code.
|
2022-10-30 16:51:35 +01:00 |
|
Christoph Oelckers
|
9c097e1763
|
- revert to warning level 3.
Some stock warnings are far too noisy when level 4 is on.
|
2022-10-30 16:51:35 +01:00 |
|
Mitchell Richters
|
3f2d970b4f
|
- Blood: Fix minor issue where player death horizon was being applied at double speed.
|
2022-10-30 16:51:34 +01:00 |
|
Christoph Oelckers
|
3c6b64d621
|
- renamed everything back
|
2022-10-30 16:51:33 +01:00 |
|
Christoph Oelckers
|
81341ce4a6
|
- unwrapped SetScale as well.
Again no edits here - it's one big replace action.
|
2022-10-30 16:51:33 +01:00 |
|
Christoph Oelckers
|
15db7a7143
|
- unwrapped SetScaleX/Y.
|
2022-10-30 16:51:32 +01:00 |
|
Christoph Oelckers
|
85b52b1c77
|
- removed Scale(), CopyScale() and MultScale wrappers.
|
2022-10-30 16:51:32 +01:00 |
|
Christoph Oelckers
|
51768439a9
|
- started removing wrappers. ScaleX() and ScaleY() done.
No manual changes in here.
|
2022-10-30 16:51:31 +01:00 |
|
Christoph Oelckers
|
4aa765675e
|
- use a float vector to store the scale.
|
2022-10-30 16:51:31 +01:00 |
|
Christoph Oelckers
|
fb164450a7
|
- use MultScale
|
2022-10-30 16:51:25 +01:00 |
|
Christoph Oelckers
|
5700d25120
|
- minor cleanup on scaling code
|
2022-10-30 16:51:25 +01:00 |
|
Mitchell Richters
|
ffc16635b2
|
- Blood: Make bobPhase a proper float.
|
2022-10-30 16:51:24 +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
|
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
|
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
|
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 |
|
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
|
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
|
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
|
84dfe98f17
|
- replaced all set_native_clipdist in Blood
|
2022-10-30 16:51:16 +01:00 |
|
Christoph Oelckers
|
d22c473c31
|
- manual 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
|
7cb2545f4b
|
- let TranslateSector update the player's angle if not in vanilla mode.
|
2022-10-30 16:51:13 +01:00 |
|
Mitchell Richters
|
cea2b6b428
|
- Rename PlayerHorizon::__horiz back to horiz .
|
2022-10-30 16:51:12 +01:00 |
|
Mitchell Richters
|
0600bf5860
|
- Negate everything to do with PlayerHorizon::__horiz where appropriate, including some loose horizoff members.
|
2022-10-30 16:51:11 +01:00 |
|
Mitchell Richters
|
619b8005ac
|
- Rename PlayerHorizon::horiz in prep for negating this angle throughout code.
|
2022-10-30 16:51:11 +01:00 |
|
Christoph Oelckers
|
4af1461ec3
|
- got rid of int_clipdist.
|
2022-10-30 16:51:09 +01:00 |
|
Christoph Oelckers
|
7d3babd678
|
- ported all pushmove calls to the float version.
|
2022-10-30 16:51:08 +01:00 |
|
Christoph Oelckers
|
69f27d42aa
|
- same for Blood's ClipMove
|
2022-10-30 16:51:08 +01:00 |
|