Fixed floating point issues with comparison
This commit is contained in:
@@ -343,8 +343,8 @@ public class QuestController(
|
||||
output
|
||||
);
|
||||
|
||||
// Complete
|
||||
if (totalItemCountToRemove == handedInCount)
|
||||
// Complete - handedInCount == totalItemCountToRemove
|
||||
if (Math.Abs(totalItemCountToRemove - handedInCount) < 0.01)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user