mirror of https://github.com/OpenRCT2/OpenRCT2.git
Add deadcode asserts
This commit is contained in:
parent
73d453228a
commit
755aa48712
|
@ -216,6 +216,7 @@ static void FASTCALL gfx_bmp_sprite_to_buffer(uint8* palette_pointer, uint8* unk
|
||||||
|
|
||||||
//Mix with another image?? and colour adjusted
|
//Mix with another image?? and colour adjusted
|
||||||
if (unknown_pointer!= NULL){ //Not tested. I can't actually work out when this code runs.
|
if (unknown_pointer!= NULL){ //Not tested. I can't actually work out when this code runs.
|
||||||
|
openrct2_assert(false, "Dead code reached. Please contact a dev. Unknown pointer used.");
|
||||||
unknown_pointer += source_pointer - source_image->offset;// RCT2_GLOBAL(0x9E3CE0, uint32);
|
unknown_pointer += source_pointer - source_image->offset;// RCT2_GLOBAL(0x9E3CE0, uint32);
|
||||||
|
|
||||||
for (; height > 0; height -= zoom_amount){
|
for (; height > 0; height -= zoom_amount){
|
||||||
|
@ -296,6 +297,7 @@ static void FASTCALL gfx_bmp_sprite_to_buffer(uint8* palette_pointer, uint8* unk
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unk_9E3CDC != NULL) { //Not tested. I can't actually work out when this code runs.
|
if (unk_9E3CDC != NULL) { //Not tested. I can't actually work out when this code runs.
|
||||||
|
openrct2_assert(false, "Dead code reached. Please contact a dev. Unknown pointer used.");
|
||||||
unknown_pointer += source_pointer - source_image->offset;
|
unknown_pointer += source_pointer - source_image->offset;
|
||||||
|
|
||||||
for (; height > 0; height -= zoom_amount){
|
for (; height > 0; height -= zoom_amount){
|
||||||
|
@ -573,6 +575,7 @@ void FASTCALL gfx_draw_sprite_palette_set_software(rct_drawpixelinfo *dpi, int i
|
||||||
gfx_bmp_sprite_to_buffer(palette_pointer, unknown_pointer, source_pointer, dest_pointer, g1_source, dpi, height, width, image_type);
|
gfx_bmp_sprite_to_buffer(palette_pointer, unknown_pointer, source_pointer, dest_pointer, g1_source, dpi, height, width, image_type);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
openrct2_assert(false, "Dead code reached. Please contact a dev. Non RLE or BMP.");
|
||||||
//0x67A60A Not tested
|
//0x67A60A Not tested
|
||||||
int total_no_pixels = g1_source->width*g1_source->height;
|
int total_no_pixels = g1_source->width*g1_source->height;
|
||||||
source_pointer = g1_source->offset;
|
source_pointer = g1_source->offset;
|
||||||
|
|
Loading…
Reference in New Issue