Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #824102

Pathfinding: Fuel map does not support move cost of over 255

Added by Marko Lindqvist over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
General
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Split from Bug #824099.

cost_to_here[] is unsigned char array, meaning the maximum value that fits to elements is 255. Since costs placed there have +2 added, the maximum real cost is 253. This is rather low for large maps.

History

#1 Updated by Marko Lindqvist over 1 year ago

#2 Updated by Marko Lindqvist over 1 year ago

  • Status changed from Resolved to Rejected
  • Assignee set to Marko Lindqvist

Only cost of one move is stored there, not cumulative.

#3 Updated by Marko Lindqvist over 1 year ago

  • Status changed from Rejected to Resolved

As seen by a failing assert in a autogame, even for single amphibious move the cost can exceed 253 as "We therefore scale up the movement rates (and the corresponding movement consts) to the product of the two rates."

#4 Updated by Marko Lindqvist over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF