James R
b50d34e8b5
Add srb2::sweep, AABB line sweep algorithms
2024-12-25 13:21:23 -05:00
James R
c2949ae031
Add srb2::math, fixed-point, vector, line and slope formula classes
...
- srb2::math::Fixed
- Operator overloads for FixedMul and FixedDiv
- Implicit conversion between fixed_t, Fixed and
floating-point types
- srb2::math::Vec2
- Template to any type
- Operator overloads for arithmetic operations
- Convertible between different types
- srb2::math::LineSegment
- Template to any type
- Holds two Vec2 instances
- Sorting methods and vertical/horizontal test
- srb2::math::LineEquation
- Slope formula from LineSegment
- y method to find y from x
- Intersect algorithm
- Fixed-point specialization to avoid overflows
- srb2::math::LineEquationX
- Inherits LineEquation
- x method to find x from y
2024-12-25 13:03:50 -05:00
NepDisk
cf313e1673
Fix erronous use of ML_BLOCKPLAYERS in P_Setup.c
2024-12-20 13:40:16 -05:00
James R
7e9e259da3
Replays: reserve 1 KB of space at end of buffer as a safeguard
...
This should avoid buffer overruns in the middle of
recording. There is already code that checks for buffer
size around ticcmd and ghost data write. Demo header is
still unsafe with many WAD filenames written, for example.
Ghost data and ticcmd should not come close to reaching
into this extra space. At the time of writing, ghost data
can write up to 102 bytes and ticcmd 20 bytes, per player.
2024-12-20 13:20:38 -05:00
Eidolon
f9c231a77c
Defer ghost deallocation til FreeGhosts
...
Fixes KartKrew/Kart#824
The for-loop attempts to read `g` after the object it points to has
already been freed by Z_Free. Instead, we add a new `done` field, and
mark it when hitting the end of the demo, and skip ghosts in the ghost
list which have it set.
2024-12-20 12:53:45 -05:00
James R
061c98a7d2
G_WriteAllGhostTics: check buffer size after each player's ghost data
...
Instead of checking it after ALL player ghost data. This
is less likely to write past the end of the demo buffer.
2024-12-20 12:46:34 -05:00
NepDisk
eac15b8542
Display gamespeed regardless of gamemode and make itembreaker uses normal speed
...
Since battle speed is a thing now, this makes sense
2024-12-19 12:36:25 -05:00
NepDisk
52a02c40e5
Fix music file names for titlescreen and credits
2024-12-18 00:41:44 -05:00
NepDisk
389acf3020
Fix Item Breaker timelimit
2024-12-18 00:35:13 -05:00
NepDisk
f996d869db
misc fixes
...
Fix time limit, disable mobjscramble, fix paranoia compile, clean up refernces code, fix driftdust negative refernces
2024-12-17 23:53:51 -05:00
NepDisk
3622b78b3e
Readd SPB karma modes, remove every hit rewarding bumpers, allow flashtics again
2024-12-17 17:57:47 -05:00
NepDisk
8dcaba2d43
Basic work to restore the wanted system
2024-12-17 10:54:22 -05:00
NepDisk
a5b76597eb
Remove Shpereboxes
2024-12-17 10:29:53 -05:00
NepDisk
7bdf9633bc
Remove emeralds from battle
2024-12-17 10:13:09 -05:00
NepDisk
e1720e7b3a
Remove overtime stuff
2024-12-17 00:47:36 -05:00
NepDisk
4b1324da69
Remove Battle capsule stuff and turn it into Item Breaker
...
You have to smash every itembox in a map as fast as you can. When you mash you get a pogospring and waiting gives a sneaker
2024-12-17 00:24:20 -05:00
NepDisk
1e678f660f
Remove TESTERS and HOSTTESTES and use v1 assets where applicable
2024-12-16 14:23:14 -05:00
NepDisk
9dee047420
Minor fixes
2024-12-09 17:21:46 -05:00
NepDisk
33e0954002
Revert 'Remove FIN'
...
This reverts commit d970747c85 .
2024-12-09 17:21:46 -05:00
NepDisk
3d26be2158
Revert "Remove Brak Eggman"
...
This reverts commit 364651ac39 .
2024-12-09 17:21:46 -05:00
Alug
68496a68ce
fix early return in comparePolygons
...
thx durr very cool
2024-11-26 14:51:07 +01:00
NepDisk
83fc4e8342
Port some callfuncs from base SRB2 ACS merge
...
This could be handy for all sorts of stuff
2024-11-25 11:40:20 -05:00
Alug
a09bde5364
use actual view to clip segs in ogl instead of calculated fov
...
thx dsda-doom!
basically better performance in alot of cases and technically should fix any future issues if someone plays on weird aspect ratios
2024-11-19 17:28:36 +01:00
NepDisk
67ea1fdc04
Fixed removed stuff
2024-11-18 11:44:46 -05:00
NepDisk
5abf1ad017
Revert "Make UDMF scale compatible with ZDoom's spec"
...
This reverts commit 437d728ec9 .
2024-11-18 11:38:08 -05:00
NepDisk
e2c9364355
faketics
2024-11-18 10:38:18 -05:00
toaster
4d133ca377
P_GetNodeType: Do not dereference invalid pointer for **nodedata parameter
2024-11-18 10:28:10 -05:00
SteelT
a68e6fb10c
Set curl_failedwebdownload to true for corrupt or modified HTTP downloads.
...
So that it actually falls back to direct downloading
2024-11-18 10:20:05 -05:00
SteelT
1fc0499d7e
Add MD5 checking to HTTP downloading
...
In cases of where the file mismatches from what the server expects, it will fall back to direct downloading of the file.
2024-11-18 10:19:57 -05:00
NepDisk
36f28e599e
Support cheatcheckactivator for RR support
2024-11-18 10:12:13 -05:00
Sal
437d728ec9
Make UDMF scale compatible with ZDoom's spec
2024-11-18 09:55:13 -05:00
NepDisk
c762761eff
Fix Spring angle
...
Yes this is duped code but I can't be assed to figure out why the previous broke shit
2024-11-16 21:18:06 -05:00
NepDisk
28d8f15bfc
Merge branch 'v2dev3' into ACS2
2024-11-16 14:27:34 -05:00
hayaunderscore
ac7ee79e22
add a fallback to set spr2 for manually set PLAY frames
2024-11-16 14:22:21 -05:00
Alug
bed5bb3215
fix ogl y shearing verical aim
2024-11-16 14:22:15 -05:00
hayaunderscore
98f8bd46cd
support for legacy v1 musicdefs
2024-11-16 14:22:08 -05:00
Alug
dffb5d6e85
Merge remote-tracking branch 'origin/ACS2' into ACS2
2024-11-14 23:55:45 +01:00
Alug
53c8d97dfe
fix spritesclales not being initiliased if they didnt got set uh
2024-11-14 23:55:34 +01:00
Alug
8ed1631a74
fix spritesclales not being initiliased if they didnt change uh
2024-11-14 23:54:14 +01:00
Sally Coolatta
357b2cd571
Opening_t typedef
2024-10-29 12:15:20 -04:00
NepDisk
4db4864151
I'm a blind fuck lel
2024-10-28 21:06:00 -04:00
NepDisk
b66f384d1c
Fix Jawz behaviour
2024-10-27 14:03:09 -04:00
NepDisk
e3f6cf4092
Add new items to menu
2024-10-26 12:59:56 -04:00
NepDisk
1766932ea9
Improve mapthing mobjlib code and expose I_GetPreciseTime
2024-10-26 02:01:58 -04:00
NepDisk
5fced3f706
Use a modified ACSVM to support 10 arg linedefs
...
62dd76dbcd
2024-10-23 13:12:10 -04:00
NepDisk
62f50486fe
Merge branch 'v2dev3' into ACS2
2024-10-23 13:02:58 -04:00
Alug
7091bd6691
Fix HWR_SplitWall and sloped midtextures
...
based on https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1781/
but modified from saturn to not make performance worse
2024-10-23 18:57:43 +02:00
Alug
c58a08baba
replace those with macros + remove unused pointtoangleex
...
reduces function call overhead, those are called quite often for alot of things
and R_PointToAngleEx is basically useless due to R_PointToAngle64
2024-10-23 17:20:41 +02:00
Alug
ce82aa1f19
fix a -Wmaybe-uninitialized warning
...
deez nuts are being used unitialised
this will only ever be used with TC_RAINBOW so why not move it into the condition for it?
2024-10-23 14:59:52 +02:00
Alug
507f05e7bb
add missing "do"
2024-10-23 14:37:36 +02:00