1
0
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:
Marijn van der Werf
2016-12-19 18:45:08 +01:00
committed by Michael Steenbeek
parent 77eea325ae
commit 2fca2adbc1
13 changed files with 133 additions and 81 deletions

View File

@@ -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;
}