Commit graph

42 commits

Author SHA1 Message Date
yamamama
84e0f9503e SecsToFixed, SecsToFixedTens, and 64-bit variants
Converts seconds/tens of seconds to fixed_t values:
- SecsToFixed: 1 second is 1 fracunit
- SecsToFixedTens: 10 seconds is 1 fracunit
2025-11-16 00:23:12 -05:00
Anonimus
19f4cbae26 Add a timer warning to Alt. Invin. 2025-10-22 20:48:43 -04:00
NepDisk
c1d16124e5 Port Saturn timestuff branch
Should be better then I_UpdateTime spam
https://github.com/Indev450/SRB2Kart-Saturn/commits/timestuff/
2025-10-15 16:33:18 -04:00
Anonimus
30614c758c 64-bit FixedMul and FixedSqrt, integer sqrt functions 2025-10-01 10:09:31 -04:00
Anonimus
fbc33d1517 2D vector rotation 2025-09-29 09:13:50 -04:00
Anonimus
bb1f65fcc1 Fix compiler/linker fussing and inconsistencies
Some things got lost in translation in the revert
2025-09-18 04:10:34 -04:00
Gustaf Alhäll
d0ab031a71 Remove redundant vertex, matrix and quaternion code 2025-09-18 00:59:35 -04:00
LJ Sonic
12dc3798a7 Rename matrix_t to oldmatrix_t 2025-09-16 09:39:44 -04:00
NepDisk
2f84779d41 Update rest of the existing files to use blankart branding 2025-07-01 00:23:30 -04:00
Anonimus
5e15f7a68a Update Alternative Invincibility
Invincibility now begins to get affected by offroad as it runs out
A "bottlenecker" begins to kick in as an invincible player closes in on the cluster, causing their invincibility to expire at an increasing rate
Prevent Invincibility from being rolled at extremely close cluster distances, to prevent the potential for rolling it as a "dud" item
2025-06-29 01:30:14 -04:00
Anonimus
00470714c0 Make bots drift 2025-04-25 16:21:57 -04:00
tertu marybig
8060a2e30b Remove FixedMul and FixedDiv2 asm implementations
Actually works this time
2025-03-25 09:12:20 -04:00
NepDisk
2a0b0d4bae Remove ASM 2025-03-24 22:35:18 -04:00
James R
b31e79b742 Kill last of DJGPP, WATTCP, _WINDOWS (ol' DirectDraw) 2025-02-25 00:42:42 +01:00
Eidolon
d08b923f06 Merge branch 'extern-c-everything' into 'master'
Add extern "C" in C++ to all headers

See merge request KartKrew/Kart!842
2024-10-15 14:14:43 -04:00
James R
9e801c66d5 Merge branch 'universal-typedef' into 'master'
Move all typedef into one file

See merge request KartKrew/Kart!791
2024-10-15 04:16:58 -04:00
James R
545ec73bd8 FixedDiv2: divide numerator before taking absolute value to avoid INT32_MIN overflow to 0 2024-07-31 03:02:15 -04:00
Sally Coolatta
d8b7967a22 Make all instances of this sine use M_TAU_FIXED 2022-05-23 13:38:53 -04:00
toaster
c1f3237157 Boss API + assorted relevant bugfixes, will go over the featureset of this branch with a fine toothed comb when it's time to write the merge request description so this is all you're getting right now 2022-02-24 21:19:03 +00:00
GoldenTails
40e93e1977 Deprecate FixedRem.
It's about time!
2020-05-18 11:29:56 -05:00
Monster Iestyn
8aed1de7de use ATTRINLINE rather than inline to match some of the other functions in this file, though I'm told modern compilers ignore inlining info as they actually decide themselves now
(though I could pretend we still support the older ones lol)
2020-03-30 20:25:56 +01:00
Monster Iestyn
4ddb1d170a Turn the fixed-float convert macros into inline functions, like those in GZDoom. The old macros get to be just the same as calling these inline functions. 2020-03-30 19:58:46 +01:00
James R
2274129f57 Update copyright year to 2020 2020-02-19 14:08:45 -08:00
Steel Titanium
a5cdb0a4b3 Update copyright date on source files 2019-12-06 13:49:42 -05:00
Steel Titanium
dc9a09f837 Merge branch 'public_next' into 'master' 2019-11-18 15:39:41 -05:00
mazmazz
14df513db6 Merge remote-tracking branch 'origin/master' into internal-md3-vanilla 2019-06-29 17:51:30 -04:00
mazmazz
81352aece1 WIP 20190101 merge
d_netcmd.c
filesrch.c
m_menu.c
p_setup.c
p_spec.c
r_data.c
r_main.c
r_things.c
w_wad.c
w_wad.h
2019-01-02 01:09:15 -05:00
Arthur
f79ce3528c New fixed math functions - ClosestPointOnVector, and Strength.
Normal also returns length now, since it is free.
2018-12-18 17:28:39 -05:00
mazmazz
c91b2b4456 Update source copyrights to 2018 2018-11-25 07:35:38 -05:00
Oleksii Vilchanskyi
15f8881ea0 m_fixed: asm: cc is not a register
gcc accepts

  __asm__ ( "" : : : "%cc");

but not clang:

    error: unknown register name '%cc' in asm
        :"%cc", "%edx"         // edx and condition codes clobbered

'cc' is not a register, thus '%cc' is rightfully not accepted.

Repro: build the project on x86_64 with:
    cmake -H. -Bbuild -DCMAKE_C_COMPILER=clang -DCMAKE_SIZEOF_VOID_P=4 -DCMAKE_C_FLAGS="-m32"
2018-05-18 00:23:22 +02:00
Monster Iestyn
302d0425e0 Incinerated WinCE 2017-09-29 23:25:34 +01:00
Monster Iestyn
9e6ed121ba Comment out sdl12/SRB2CE/cehelp.h include in m_fixed.h
I think it was originally included for defining the "USEASM" macro, but USEASM isn't used by m_fixed.h/c code anymore
2017-09-14 21:29:38 +01:00
Monster Iestyn
900bab9b13 Fix includes for SDL 1.2-only ports' files 2017-09-14 21:15:38 +01:00
Monster Iestyn
be21588761 Merge branch 'master' into next 2017-01-03 16:06:50 +00:00
Monster Iestyn
d5803160dd Remove all traces of SSN's old port of ZDoom's secplanes for slopes, since our slopes do not need them 2017-01-02 19:12:09 +00:00
Sryder
93901847d3 Fix the Fixed Rounding functions 2016-12-12 00:06:48 +00:00
Inuyasha
f07585191b copyright dates/statements updated and such
(no actual SLOC changes)
2016-05-17 17:42:11 -07:00
Alam Ed Arias
96c71c68c8 remove NEED_FIXED_VECTOR and fix angelchk testcase 2015-08-21 21:27:20 -04:00
RedEnchilada
89319b1c2a Dummy out m_vector and use m_fixed's functions instead
These functions were already here before, and I /swear/ the slope
physics became slightly less glitchy after switching to them...
Only issue is the slope plane mapping code hasn't been properly
converted yet, so they don't render properly for now.
2015-05-22 22:07:07 -05:00
RedEnchilada
5070a964b9 Starting to clean up a bit of Kal's mess
I still don't know why Git reacts so strangely to the new files' line breaks...
2015-04-25 22:22:50 -05:00
Ronald Kinard
54f0d0c110 IN PROGRESS: porting eternity slopes from srb2cb 2014-11-18 18:45:57 -06:00
Alam Ed Arias
b93cb1b65a SRB2 2.1 release 2014-03-15 13:11:35 -04:00