Original War Support Bug Tracker
Please log in to bookmark issues
CLOSED  Bug report #84  -  When GetTickCount returns negative number Range Check Error is tripped
Posted Feb 26, 2015 - updated Feb 26, 2015
icon_info.png This issue has been closed with status "Fixed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
  • Assigned to
    Not assigned to anyone
  • Progress
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Time spent
    No time spent
  • Category
    Game Engine
  • Resolution
  • Priority
    Not determined
  • Reproducability
  • Severity
  • 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).

Comment posted by
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.