Original War Support Bug Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report #84  -  When GetTickCount returns negative number Range Check Error is tripped
Posted Feb 26, 2015 - updated Feb 26, 2015
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Fixed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Fixed
  • Assigned to
    Not assigned to anyone
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Stucuk
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Time spent
    No time spent
  • Category
    Game Engine
  • Resolution
    RESOLVED
  • Priority
    Not determined
  • Reproducability
    Rarely
  • Severity
    High
  • Targetted for
    icon_milestones.png Not determined
Issue description
When GetTickCount is negative it causes the animations to throw a range check error as there picture index becomes negative.
Steps to reproduce this issue
Hard to reproduce as GetTickCount normally returns a positive number (Technically its always positive since its an Unsigned Integer but Altar use signed integers to hold and manipulate its value).

#1
Comment posted by
 Stucuk
Feb 26, 01:05
Fixed by forcing it to always be positive (Its still stored in an integer, we just make the negative part positive so the number goes from 0 to 2147483647)

The issue was updated with the following change(s):
  • This issue has been closed
  • The status has been updated, from New to Fixed.
  • This issue's progression has been updated to 100 percent completed.
  • The resolution has been updated, from Not determined to RESOLVED.