Monster Iestyn
ab5835cd3b
Remove cruft from my initial days of fumbling with this branch
...
textcmd[0] for PT_NODETIMEOUT can't hold anything < 0 anyway, and you'd probably have to really try to get >= MAXNETNODES
2017-05-26 15:26:00 +01:00
Monster Iestyn
e09270276e
Display node's IP when printing the "sending file to node n" message, if noticedownload is turned on
2017-05-26 14:38:59 +01:00
Monster Iestyn
569af9f4c1
I am dumb, SV_AbortSendFiles already does what SV_RemoveFileSendList was made to do
2017-05-26 14:19:18 +01:00
Monster Iestyn
7979f84e25
whoops
2017-05-26 13:58:34 +01:00
Monster Iestyn
aecc97ded3
PT_REQUESTFILE checking:
...
* if you sent it to a client rather than the server, game over, your connection is closed
* if files that don't exist or are too large are requested are listed, game over, your connection is closed (they should have been checked on YOUR side beforehand, silly)
* if the server has downloading disabled anyway, ...yeah, you get the idea
Don't worry, I made sure Got_RequestFilePak cleaned up the full file request list for the node in case of failure
2017-05-26 13:39:54 +01:00
Monster Iestyn
437780d503
Add missing break for MT_EGGCAPSULE's switch case in P_SpawnMobj (sorry!)
2017-05-25 18:40:48 +01:00
Monster Iestyn
a23e9bc32b
Fix size_t printing
2017-05-25 18:10:20 +01:00
toasterbabe
fe9ebbd1ca
Files which are unimportant are not sent in the fileneeded list.
...
This removes exactly one feature in exchange for a greater number of files to be loaded. I asked around, and people don't actually like what it currently does (load unimportant server-side files if you can findfile it locally), so.
Can be reverted if requested.
2017-05-25 17:58:32 +01:00
Monster Iestyn
58236af6f7
Tweak to D_MapChange: if you failed to start a server, DON'T send a map change command
2017-05-25 16:55:59 +01:00
toasterbabe
47e171250f
* Prevent joining a server if you have too many files loaded to add the remainder.
...
* Made the check in Got_RequestAddfilecmd more comprehensive, since I might as well. Just something to tweak a little later in internal.
2017-05-25 16:06:39 +01:00
toasterbabe
5c302d7ffc
Partial implementation of fix for Got_RequestAddfilecmd (the other half - the limitation on the size of the filesneeded section of the serverinfo packet - will be applied in internal.)
2017-05-25 15:34:21 +01:00
toasterbabe
2aa1215716
Fix a thing where the host adds a WAD and you have too many WADs loaded to add it.
2017-05-25 15:22:32 +01:00
toasterbabe
9fcf40b5a3
woops
2017-05-24 22:36:59 +01:00
toasterbabe
e2f6366292
Minimum fill for temperature gauge if you have any wads loaded at all.
2017-05-24 22:05:41 +01:00
toasterbabe
c2705b4662
* Make wads that don't modify the game not count towards the internal packet size tally in w_wad.c, like they wouldn't in d_netfil.c.
...
* Now that it's consistent, removed the redundant packet size tally check in d_netfil.c.
2017-05-24 21:45:03 +01:00
toasterbabe
74c4ad4bad
Minor refactor, plus cutting out a potential bug of setting dir_on[] to -1.
2017-05-24 20:55:35 +01:00
toasterbabe
e41976fb05
https://cdn.discordapp.com/attachments/293238104096112641/317023848493088779/srb20016.png
...
* Visual Indicator of modifiedgame/savemoddata.
* Other assorted improvements to layout.
2017-05-24 20:55:05 +01:00
Monster Iestyn
c92aaa74a4
I think PT_CLIENT2MIS was meant to do this too, probably
2017-05-23 18:46:34 +01:00
Monster Iestyn
7147e0fcaf
Improve previous PT_TEXTCMD/PT_TEXTCMD2 check, add another one to ignore zero size textcmds!
2017-05-23 17:35:32 +01:00
Monster Iestyn
0b0b738a6f
Don't allow non-servers to receive PT_RESYNCHGET
2017-05-23 16:34:56 +01:00
Monster Iestyn
ff1cc07a1d
Implemented toaster's suggestion to make a macro here
2017-05-23 16:29:09 +01:00
Monster Iestyn
9e3bdc5ee2
Prevent bad PT_TEXTCMD/PT_TEXTCMD2 textcmd[0] sizes?
2017-05-23 16:13:42 +01:00
Monster Iestyn
fdfd6e1c0b
Whoops don't do that for PT_REQUESTFILE
2017-05-22 22:20:08 +01:00
Monster Iestyn
c70839334e
Added a bunch of missing checks to prevent non-server players from sending other non-server players stuff
2017-05-22 22:17:51 +01:00
Monster Iestyn
3784d765e4
Remove extra whitespace I added
2017-05-22 20:47:38 +01:00
Monster Iestyn
28444c12dd
Some more things I overlooked in this fix
2017-05-22 16:54:39 +01:00
Monster Iestyn
247ed56e17
Don't allow nonsense PT_ASKINFOVIAMS packets, nor any at all if offline
2017-05-22 16:44:50 +01:00
Monster Iestyn
6062223eb5
Merge branch 'master' into next
2017-05-22 13:23:46 +01:00
Monster Iestyn
5aeb4b5919
Revert "Loop through rebound packets until you found a good one or ran out of them"
...
On second thought, this was probably unnecessary anyway.
This reverts commit 1078a642df .
2017-05-20 21:29:05 +01:00
Monster Iestyn
284e539c66
Don't bail out in Y_StartIntermission in dedicated mode, this causes the game not to add on score bonuses for players from the server's view of things!
2017-05-19 16:31:23 +01:00
Monster Iestyn
1078a642df
Loop through rebound packets until you found a good one or ran out of them
2017-05-19 11:52:50 +01:00
Monster Iestyn
5a1fc6098e
Attempts to prevent stupid stuff from happening
2017-05-19 11:25:28 +01:00
Monster Iestyn
229e75ab8b
Removed all code in Y_FollowIntermission that's already handled in G_AfterIntermission
...
Only real difference here is that CEcho messages will always be cleared when going to credits/evaluation, but that's hardly a loss tbh.
2017-05-18 17:23:19 +01:00
Monster Iestyn
d2313ea32b
G_ExitLevel tweak: Use HU_ClearCEcho() instead of HU_DoCEcho(""), the latter causes an empty line to appear in log.txt
2017-05-18 17:10:44 +01:00
Monster Iestyn
bc79365cf4
Moved Y_EndGame from y_inter.c/h to g_game.c/h, renamed it to G_EndGame
2017-05-18 16:54:58 +01:00
Monster Iestyn
21d29c8550
Merge branch 'public_next'
2017-05-17 16:19:01 +01:00
Monster Iestyn
1781ccf4ca
Merge branch 'master' into next
2017-05-17 16:16:50 +01:00
toasterbabe
593416328a
String addition to the addfile menu suggesting to visit the modifications page! No change to actual functionality, just secondary utility.
2017-05-16 23:43:21 +01:00
Monster Iestyn
551ed797db
Merge branch 'jumping_fixes' into 'master'
...
Nojumpspin fix
MI can attest to this being a problem that's now solved.
To test, check out root/!LatestSRB2Files/srb2win_branch_jumpfixes.exe and root/MonsterIestyn/robohood.wad.
See merge request !95
2017-05-16 17:02:20 -04:00
toasterbabe
5f8cfb47e4
Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2Internal.git into addfile_menu
2017-05-16 19:54:54 +01:00
Monster Iestyn
17a06dd6c4
I_GetConsoleEvents: Split KEY_EVENT code into a function of its own, like with I_GetEvent's event types
...
One benefit of this is that event_t data need only be created if KEY_EVENT is found, since the other event types never do anything anyway
2017-05-15 18:39:59 +01:00
Monster Iestyn
87085f2475
SDLSetMode: merge wasfullscreen/windowed mode code into one block
2017-05-15 16:35:32 +01:00
Monster Iestyn
a340f2c8ed
Impl_CreateWindow: re-use "flags" for SDL_RENDERER_* flags, remove unnecessary curly braces
2017-05-15 16:19:28 +01:00
Monster Iestyn
4979ab6b8e
Not really important or anything, but checking render_soft == rendermode rather than rendermode == render_soft always bugged me. And it's not consistent with the rest of the source code (or at least most of it) anyway.
2017-05-15 15:43:31 +01:00
Monster Iestyn
d1bbd1261e
VID_SetMode: SDLSetMode should use vid.width/vid.height, not windowedModes[modeNum].
...
If modenum was < 0 or >= MAXWINMODES, that would make windowedModes[modeNum] be out of bounds and possibly crash the game.
2017-05-15 15:36:51 +01:00
Monster Iestyn
093800cb06
I_FinishUpdate: OglSdlFinishUpdate should never run for render_soft, even if screens[0] somehow is NULL
2017-05-15 15:24:40 +01:00
Monster Iestyn
f8482421e5
Don't need to use WADFILENUM/LUMPNUM in this function, since W_CheckNumForNamePwad returns just the lump number, not a combined WAD + lump number frankenstein's monster
...
This is just in case someone actually tries to dump in C_START/C_END and "add" colormaps using them, not that they would ever be used currently anyway.
2017-05-15 14:38:55 +01:00
Monster Iestyn
222807c6f6
Fix R_InitExtraColormaps reporting 6 or more colormaps every time you loaded the game, even though we haven't used C_START/C_END in more than a decade now
...
Note to self: W_ functions are awfully confusing with returning with LUMPERROR or INT16_MAX. Should sort out what's going on there if necessary
2017-05-15 14:29:31 +01:00
toasterbabe
bdcd9125d2
Fixed that thing where missiles like sliding up slopes for some reason.
...
This isn't a 1:1 fix for non-slopes - they still like stepping up over the borders of sloped sectors - but this fixes the most egregrious issue.
2017-05-14 14:47:09 +01:00
Monster Iestyn
9a9b2fcc2d
Merge branch 'master' into mapthing-spawn-hook
2017-05-13 21:06:49 +01:00