2024-04-25 12:27 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004534Spring engineAIpublic2014-09-06 14:43
Reporterlamer 
Assigned TojK 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version97.0.1+git 
Target VersionFixed in Version 
Summary0004534: C++ AI Pathing::GetApproximateLength always returns 0
DescriptionPathing::GetApproximateLength always returns 0.
Return type is int despite float declared in SSkirmishAICallback.h
Steps To ReproduceUs next code inside C++ AI:
springai::Pathing* pathing = callback->GetPathing();
float len = pathing->GetApproximateLength(startPoint, endPoint, pathType, 0.0f);
delete pathing;
Additional InformationFix with brief explanation: https://github.com/spring/spring/pull/127

Java's wrapper looks ok, but also have int instead of float (didn't check if its working).
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2014-09-06 12:11 lamer New Issue
2014-09-06 14:43 jK Status new => resolved
2014-09-06 14:43 jK Resolution open => fixed
2014-09-06 14:43 jK Assigned To => jK
+Issue History