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


  • 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


  • 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
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm



Return to Nexuiz - Support / Bugs




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest