Skip to content

Commit

Permalink
Workaround for #700, _may_ fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
vsonnier committed Jul 14, 2024
1 parent ff397da commit debcaca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Quake/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ void _Host_Frame (double time)
// Run the server+networking (client->server->client), at a different rate from everyt
while ((host_netinterval == 0) || (accumtime >= host_netinterval))
{
float realframetime = host_frametime;
double realframetime = host_frametime;
if (host_netinterval && isDedicated == 0)
{
host_frametime = sv.active ? (listening ? q_min (accumtime, 0.017) : host_netinterval) : accumtime;
Expand Down
2 changes: 1 addition & 1 deletion Quake/quakedef.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#define DIST_EPSILON (0.03125) // 1/32 epsilon to keep floating point happy (moved from world.c)

#define MAX_PHYSICS_FREQ (72.0) // Physics beyond 72Hz is broken
#define MAX_PHYSICS_FREQ (71.9990) // Physics beyond 72Hz is broken, use a slightly lower value to overcome some bugs

#define MAX_MSGLEN 64000 // max length of a reliable message //ericw -- was 32000
#define MAX_DATAGRAM 64000 // max length of unreliable message //johnfitz -- was 1024
Expand Down

2 comments on commit debcaca

@j4reporting
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this workaround can be replaced by andrei-drexler/ironwail@93260ab
a quick test with ironwail + pr-312 applied showed no issues with peril or remobilized.

@vsonnier
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, indeed it worked ! I'm keeping the other fixes though. Just on time when I wanted to make a new 1.31.1 release :)
Will do it before next week, unless something else shows up. Time to play some Quake levels and have fun.

Please sign in to comment.