1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Allocate image IDs for RCT1 images

This commit is contained in:
Ted John
2016-12-30 02:28:10 +00:00
committed by Gymnasiast
parent 4bffc4b131
commit a102a566d2
2 changed files with 6 additions and 2 deletions

View File

@@ -618,6 +618,8 @@ rct_g1_element *gfx_get_g1_element(sint32 image_id) {
if (image_id < SPR_G2_BEGIN) {
return &g1Elements[image_id];
}
return &g2.elements[image_id - SPR_G2_BEGIN];
if (image_id < SPR_CSG_BEGIN) {
return &g2.elements[image_id - SPR_G2_BEGIN];
}
return &csg.elements[image_id - SPR_CSG_BEGIN];
}

View File

@@ -746,6 +746,8 @@ enum {
SPR_G2_SORT = SPR_G2_BEGIN + 77,
SPR_G2_COPY = SPR_G2_BEGIN + 78,
SPR_G2_PASTE = SPR_G2_BEGIN + 79,
SPR_CSG_BEGIN = 393216,
};
#endif