mirror of https://github.com/OpenRCT2/OpenRCT2.git
Only show call count warning when counts don’t match
This commit is contained in:
parent
ee61a6af12
commit
fe0de811f1
|
@ -569,7 +569,13 @@ bool testTrackElement(uint8 rideType, uint8 trackType, utf8string *error) {
|
||||||
sprintf(diff + strlen(diff), "====\n");
|
sprintf(diff + strlen(diff), "====\n");
|
||||||
printFunctionCallArray(&diff, newCalls, newCallCount);
|
printFunctionCallArray(&diff, newCalls, newCallCount);
|
||||||
sprintf(diff + strlen(diff), ">>> ACTUAL\n");
|
sprintf(diff + strlen(diff), ">>> ACTUAL\n");
|
||||||
|
|
||||||
|
if (oldCallCount != newCallCount) {
|
||||||
sprintf(*error, "Call counts don't match (was %d, expected %d) [direction:%d trackSequence:%d]", newCallCount, oldCallCount, direction, trackSequence);
|
sprintf(*error, "Call counts don't match (was %d, expected %d) [direction:%d trackSequence:%d]", newCallCount, oldCallCount, direction, trackSequence);
|
||||||
|
} else {
|
||||||
|
sprintf(*error, "Calls don't match [direction:%d trackSequence:%d]", direction, trackSequence);
|
||||||
|
}
|
||||||
|
|
||||||
sprintf(*error + strlen(*error), "\n%s", diff);
|
sprintf(*error + strlen(*error), "\n%s", diff);
|
||||||
|
|
||||||
free(diff);
|
free(diff);
|
||||||
|
|
Loading…
Reference in New Issue