Commit graph

20034 commits

Author SHA1 Message Date
toaster
e03a97c18a Fix double i++ in M_LoadJoinedIPs 2022-09-27 19:52:37 +01:00
Sal
be0b700b76 Merge branch 'joinedip-fixes' into 'master'
Joined IP fixes

Closes #287 and #288

See merge request KartKrew/Kart!694
2022-09-27 18:10:19 +00:00
Sal
8ced33c236 Merge branch 'turning-off-by-one' into 'master'
Fix right turning being slightly weaker than left turning

See merge request KartKrew/Kart!709
2022-09-27 18:02:54 +00:00
Sal
699666a5d3 Merge branch 'better-splash' into 'master'
TERRAIN expansion pak

See merge request KartKrew/Kart!680
2022-09-27 16:02:07 +00:00
James R
3d2f6770a5 Divide G_PlayerInputAnalog values by JOYAXISRANGE
Previously right shifted by 10, which should've been
equivalent to divide by 1024. It returned -799 or 800 for
a full turn in either direction though.

This commit lets turning values reach KART_FULLTURN in
either direction.
2022-09-26 20:44:09 -07:00
toaster
52f0217bac Completely rewrite how joined IPs are saved and written... again
- Use strlcpy instead of strcpy to prevent footguns
- Use fprintf instead of raw fputs
- Enforce consistent MAX_LOGIP (255) length for each component instead of a combination of magic number 255 and MAXSTRINGLENGTH (32!?) depending on where you look
- Fix fun memory leak in waiting
- Avoid pointless strlens
2022-09-26 21:28:33 +01:00
toaster
dfce863449 Dummy out connectedservername usage for now, as it's only ever written to when YOU host 2022-09-26 20:52:08 +01:00
toaster
5779ac6a05 Re-order IPs on successful connection to recent server 2022-09-26 20:41:14 +01:00
toaster
e58a109a2b Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into joinedip-fixes 2022-09-26 20:16:34 +01:00
toaster
710b2da729 Don't strcpy into beyond the end of the joinedIPlist array 2022-09-26 20:14:17 +01:00
toaster
ff629a4c78 Merge branch 'kill-nonet' into 'master'
Kill last of NONET, DJGPP (DOS), WATTCP (also DOS?), _WINDOWS (DirectDraw)

See merge request KartKrew/Kart!704
2022-09-26 17:02:55 +00:00
James R
89641f5ff4 Add GTOP sprite definition
🥹
2022-09-25 18:15:10 -07:00
Sally Coolatta
b440724bc5 Set random class for the new splash features 2022-09-25 20:01:46 -04:00
Sally Coolatta
21d32511a5 Merge branch 'master' into better-splash 2022-09-25 20:01:27 -04:00
toaster
8811e66409 Merge branch 'hut-sucks' into 'master'
Replay hut code smell fix

See merge request KartKrew/Kart!708
2022-09-25 21:51:31 +00:00
toaster
3b9959a707 Replay hut code smell fix
- Properly account for non-loaded maps (missed in big-large-map-markers)
- Don't have a million copypasted extrasmenu.demolist indexarooies
- Make one bad replay handler in `G_LoadDemoInfo(` instead of fifty copypastes (Hmn I am smelling a THEME)
2022-09-25 22:47:22 +01:00
Sal
13ad2fc4d1 Merge branch 'rng-states-2' into 'master'
RNG classes, take 2

See merge request KartKrew/Kart!686
2022-09-25 21:18:42 +00:00
Sally Coolatta
5fb37b634f Fix RNG + map reads in demo code 2022-09-25 17:06:16 -04:00
Sally Coolatta
ba62851a85 Make entire archive block for RNG
Also moved after Lua to remove the desyncs.
2022-09-25 15:50:41 -04:00
Sally Coolatta
4c3c588e3a Fix compile 2022-09-25 15:30:50 -04:00
Sally Coolatta
15edb40eb5 Merge branch 'master' into rng-states-2 2022-09-25 14:04:42 -04:00
Sally Coolatta
139d6f4a49 Merge branch 'master' into rng-states-2 2022-09-25 14:04:19 -04:00
Oni
0b623879f5 Merge branch 'projectile-sanity' into 'master'
Projectile sanity

See merge request KartKrew/Kart!707
2022-09-25 18:01:42 +00:00
Sally Coolatta
4b51f12c09 Merge branch 'master' into better-splash 2022-09-25 13:39:55 -04:00
Sally Coolatta
928d9116da Merge branch 'master' into projectile-sanity 2022-09-25 13:25:55 -04:00
Sal
8850432c79 Merge branch 'big-large-map-markers' into 'master'
Long map markers

See merge request KartKrew/Kart!327
2022-09-25 17:02:13 +00:00
Sally Coolatta
232b7d3561 Slowed down orbiting item rotation drastically 2022-09-25 13:00:34 -04:00
Sal
10f3c10220 Merge branch 'stop-multiple-sounds' into 'master'
Let S_StopSound functions stop multiple sounds at once

See merge request KartKrew/Kart!706
2022-09-25 16:45:32 +00:00
Sally Coolatta
ead1c59d58 Weight dist even less heavily 2022-09-25 12:41:23 -04:00
Sally Coolatta
13e6dfb79e New Jawz swap prevention
Instead of a static 5 tic delay each time the reticule changes, its a timer that increments the longer your target is on someone, up to 10 tics. When trying to swap targets, it will reduce this timer, and only swap when it reaches 0.
2022-09-25 12:29:18 -04:00
Sally Coolatta
13e94dfee0 Polish up Jawz target conditions slightly 2022-09-25 12:14:21 -04:00
Sally Coolatta
bbec083d4e Polish backwards behavior 2022-09-25 12:04:08 -04:00
Sally Coolatta
b0e3840550 Add jawz.c + new backwards behavior 2022-09-25 11:27:07 -04:00
Sally Coolatta
cc331d90da Add orbinaut.c + new backwards behavior 2022-09-25 09:55:49 -04:00
James R
d970c9198b Let S_StopSound, S_StopSoundByID, S_StopSoundByNum stop multiple sounds
Previously stopped only one, probably the first that
started playing.
2022-09-25 04:39:42 -07:00
Sally Coolatta
3e4edc534d Remove strange RNG sync hack
Previously it was using P_SetRandSeed, which sets both initial and current seed to the same thing, since it's meant for level load init. It first set all RNG seeds to the current seed, and then it set all of the seeds to their initial value. The comment about this just says its "stupid and hacky", and I have no idea how it even worked before.

Now we send over both init seed and current seed independently and set them both. Hopefully this will fix the desyncs.
2022-09-25 07:02:39 -04:00
toaster
b36195bfe8 Merge branch 'load-palette-before-map-data' into 'big-large-map-markers'
Load palette before map data

See merge request KartKrew/Kart!705
2022-09-25 09:37:39 +00:00
SteelT
bf9bbaaec9 Add missing line feed 2022-09-25 00:17:46 -04:00
James R
2b9701d01e Load palette before map data
Fixes PNG patch conversion crashing when called from vres
at game startup.

Also does not reload palette every time the resolution is
changed. (This had no effect on the SDL backend, don't
worry.)
2022-09-24 21:17:41 -07:00
James R
89abbd33b4 Kill last of DJGPP, WATTCP, _WINDOWS (ol' DirectDraw) 2022-09-24 19:43:44 -07:00
James R
f6a5ed9c6c Remove NONET 2022-09-24 19:22:04 -07:00
Oni
bf25bb6d85 Merge branch 'grow-stumbles' into 'master'
Grow/Shrink cleanup

See merge request KartKrew/Kart!703
2022-09-25 00:06:50 +00:00
Sally Coolatta
4a743369e4 Use K_IsBigger for more remaining old scale checks 2022-09-24 20:00:28 -04:00
Sally Coolatta
a9634dde2f Fix Shrink not receiving stumble 2022-09-24 19:51:41 -04:00
SteelT
b5e9de2e69 Grab server name from connectedservername, instead of netbuffer->u.serverinfo.servername (fixes garbage server name)
Yeah it will be blank, but preparation for whenever the server's name is stored in that variable
2022-09-24 18:20:58 -04:00
toaster
6ab24e6055 Add extra categories and apply based on non-blocking review
- PR_RANDOMANIM // FF_ANIMATE|FF_RANDOMANIM
- PR_BUBBLE // Decorative air bubbles
- PR_RULESCRAMBLE // Netgame rule scrambing events
- PR_ITEM_DEBRIS // Item debris
- PR_ITEM_BUBBLE // Item bubbles
- PR_ITEM_BOOST // Boost
- PR_SMOLDERING // Smoldering particles
- PR_SPARKLE // Endsign and/or Emerald
- PR_MOVINGTARGET // Randomised moving targets
2022-09-24 22:01:00 +01:00
Sally Coolatta
ee7125ffdf Fix missing function declaration 2022-09-24 16:42:16 -04:00
Sally Coolatta
bd1faa3178 Use scale for all grow/shrink interactions 2022-09-24 16:35:14 -04:00
Sally Coolatta
c488fc79a5 Swap them swap them 2022-09-24 16:16:38 -04:00
Sally Coolatta
08b2c09fe1 Swap them 2022-09-24 16:15:25 -04:00