mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 15:24:30 +01:00
Fix prepended wooden supports
This commit is contained in:
committed by
Michael Steenbeek
parent
77eea325ae
commit
2fca2adbc1
@@ -16,6 +16,10 @@
|
||||
|
||||
#include "FunctionCall.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "../../src/sprites.h"
|
||||
}
|
||||
|
||||
enum SpriteGroup {
|
||||
SPRITEGROUP_NONE,
|
||||
|
||||
@@ -62,6 +66,13 @@ bool FunctionCall::AssertsEquals(function_call expected, function_call actual) {
|
||||
if (expected.supports.height != actual.supports.height) return false;
|
||||
if (expected.supports.colour_flags != actual.supports.colour_flags) return false;
|
||||
|
||||
if (expected.supports.special == 14 || expected.supports.special == 15 ||
|
||||
expected.supports.special == 18 || expected.supports.special == 19 ||
|
||||
expected.supports.special == 22 || expected.supports.special == 23)
|
||||
{
|
||||
if (expected.supports.prepend_to != actual.supports.prepend_to) return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user