Results 1 to 3 of 3

Thread: run speed fix

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    36

    run speed fix

    The code is converting the run speed from a float to int then back to float. I fixed that, then divided it by a constant to make base run speed 1.000000
    Accurate to 7 significant figures now!

    Code:
    *** src/player.cpp      2016-12-14 15:47:56.914853239 -0800
    --- src/player.cpp      2016-07-29 09:41:40.403626326 -0700
    ***************
    *** 905,911 ****
        emit changeItem(this, tSpawnChangedPosition);
    
    !   emit newSpeed((int)lrint(hypot( hypot( (pupdate->deltaX*80),
                                             (pupdate->deltaY*80)),
    !                                 (pupdate->deltaZ*80))));
    
        static uint8_t count = 0;
    --- 905,911 ----
        emit changeItem(this, tSpawnChangedPosition);
    
    !   emit newSpeed(hypot( hypot( (pupdate->deltaX*80),
                                             (pupdate->deltaY*80)),
    !                                 (pupdate->deltaZ*80))/119.46664);
    
        static uint8_t count = 0;
    
    *** src/interface.cpp   2016-12-14 15:47:56.953854078 -0800
    --- src/interface.cpp   2016-07-29 09:39:37.304384827 -0700
    ***************
    *** 4425,4429 ****
    
         QString tempStr;
    !    tempStr.sprintf("Run Speed: %3.1f", speed);
         m_stsbarSpeed->setText(tempStr);
      }
    --- 4425,4429 ----
    
         QString tempStr;
    !    tempStr.sprintf("Run Speed: %3.6f", speed);
         m_stsbarSpeed->setText(tempStr);
      }

  2. #2
    Did you SEQ today? BlueAdept's Avatar
    Join Date
    Dec 2001
    Posts
    2,004

    Re: run speed fix

    Awesome. I will incorporate it as soon as I can. I have no days off this week though I will try to make time to update.
    Filters for ShowEQ can now be found here. filters-5xx-06-20-05.tar.gz

    ShowEQ file section is here. https://sourceforge.net/project/show...roup_id=10131#

    Famous Quotes:

    Ratt: WTF you talkin' about BA? (Ok.. that sounds like a bad combo of Diffrent Strokes and A-Team)

    Razzle: I showeq my wife

  3. #3
    Registered User
    Join Date
    Nov 2010
    Posts
    82

    Re: run speed fix

    Great stuff, thanks - for info, I included this and Newby's diff from the patch yesterday into showeq-5.13.10.44 and had no issues at all.

    Cheers!
    Your dad.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On