mirror of https://github.com/OpenRCT2/OpenRCT2.git
Allocate image IDs for RCT1 images
This commit is contained in:
parent
4bffc4b131
commit
a102a566d2
|
@ -618,6 +618,8 @@ rct_g1_element *gfx_get_g1_element(sint32 image_id) {
|
||||||
if (image_id < SPR_G2_BEGIN) {
|
if (image_id < SPR_G2_BEGIN) {
|
||||||
return &g1Elements[image_id];
|
return &g1Elements[image_id];
|
||||||
}
|
}
|
||||||
|
if (image_id < SPR_CSG_BEGIN) {
|
||||||
return &g2.elements[image_id - SPR_G2_BEGIN];
|
return &g2.elements[image_id - SPR_G2_BEGIN];
|
||||||
|
}
|
||||||
|
return &csg.elements[image_id - SPR_CSG_BEGIN];
|
||||||
}
|
}
|
||||||
|
|
|
@ -746,6 +746,8 @@ enum {
|
||||||
SPR_G2_SORT = SPR_G2_BEGIN + 77,
|
SPR_G2_SORT = SPR_G2_BEGIN + 77,
|
||||||
SPR_G2_COPY = SPR_G2_BEGIN + 78,
|
SPR_G2_COPY = SPR_G2_BEGIN + 78,
|
||||||
SPR_G2_PASTE = SPR_G2_BEGIN + 79,
|
SPR_G2_PASTE = SPR_G2_BEGIN + 79,
|
||||||
|
|
||||||
|
SPR_CSG_BEGIN = 393216,
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue