strange thing found in cl_physics.c (1.51-rc3)

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

strange thing found in cl_physics.c (1.51-rc3)

Postby crazy.flash » Sat Apr 08, 2006 12:35 am

hi developers,
I am not really sure where to post that, but i found that 2 lines in cl_physics.c:
Code: Select all
   spd = sv_maxspeed * maxspd_mod;
   spd = sv_maxspeed * swapspd_mod;

This doesn't really make sense to me.... The first calculation is useless since it gets overwritten by the second one.
Maybe someone mistyped something or it is just another one of QuakeC's hidden secrets i don't know yet ?!? ;)

BTW. I think you guys do realy a GREAT JOB !!! The only thing i don't really like is that the whole gamecode has as good as no comments in it.
For a modder newbie like me, it is really hard to understand whats going on in some parts of the code.
crazy.flash
Newbie
 
Posts: 7
Joined: Sun Apr 02, 2006 10:27 am

Re: strange thing found in cl_physics.c (1.51-rc3)

Postby KadaverJack » Sat Apr 08, 2006 1:20 am

crazy.flash wrote:This doesn't really make sense to me.... The first calculation is useless since it gets overwritten by the second one.
Maybe someone mistyped something or it is just another one of QuakeC's hidden secrets i don't know yet ?!? ;)

No, it's not a qc secret, it makes no sense indeed... That actually broke slow & speed runes in runematch, it's ought to be
Code: Select all
spd = sv_maxspeed * maxspd_mod * swampspd_mod;
It's fixed now, thanks for reporting.


BTW. I think you guys do realy a GREAT JOB !!! The only thing i don't really like is that the whole gamecode has as good as no comments in it.

Thanks.
@comments: well programmers are pretty lazy by nature :P
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm


Return to Nexuiz - Support / Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron