Change peep news item enum names

This commit is contained in:
ZedThree 2014-05-01 13:23:18 +02:00
parent ecc51e2f4b
commit 1e9d9c1887
3 changed files with 6 additions and 6 deletions

View file

@ -195,7 +195,7 @@ void news_item_get_subject_location(int type, int subject, int *x, int *y, int *
*z = edx; *z = edx;
} }
break; break;
case NEWS_ITEM_PEEP_1: case NEWS_ITEM_PEEP_ON_RIDE:
sprite = &(RCT2_ADDRESS(RCT2_ADDRESS_SPRITE_LIST, rct_sprite)[subject]); sprite = &(RCT2_ADDRESS(RCT2_ADDRESS_SPRITE_LIST, rct_sprite)[subject]);
*x = sprite->unknown.x; *x = sprite->unknown.x;
*y = sprite->unknown.y; *y = sprite->unknown.y;
@ -225,7 +225,7 @@ void news_item_get_subject_location(int type, int subject, int *x, int *y, int *
*y = sprite_2->unknown.y; *y = sprite_2->unknown.y;
*z = sprite_2->unknown.z; *z = sprite_2->unknown.z;
break; break;
case NEWS_ITEM_PEEP_2: case NEWS_ITEM_PEEP:
sprite = &(RCT2_ADDRESS(RCT2_ADDRESS_SPRITE_LIST, rct_sprite)[subject]); sprite = &(RCT2_ADDRESS(RCT2_ADDRESS_SPRITE_LIST, rct_sprite)[subject]);
*x = sprite->unknown.x; *x = sprite->unknown.x;
*y = sprite->unknown.y; *y = sprite->unknown.y;

View file

@ -26,8 +26,8 @@
enum { enum {
NEWS_ITEM_NULL, NEWS_ITEM_NULL,
NEWS_ITEM_RIDE, NEWS_ITEM_RIDE,
NEWS_ITEM_PEEP_1, NEWS_ITEM_PEEP_ON_RIDE,
NEWS_ITEM_PEEP_2, NEWS_ITEM_PEEP,
NEWS_ITEM_MONEY, NEWS_ITEM_MONEY,
NEWS_ITEM_BLANK, NEWS_ITEM_BLANK,
NEWS_ITEM_SCENERY, NEWS_ITEM_SCENERY,

View file

@ -533,8 +533,8 @@ static void window_game_bottom_toolbar_draw_news_item(rct_drawpixelinfo *dpi, rc
case NEWS_ITEM_RIDE: case NEWS_ITEM_RIDE:
gfx_draw_sprite(dpi, SPR_RIDE, x, y); gfx_draw_sprite(dpi, SPR_RIDE, x, y);
break; break;
case NEWS_ITEM_PEEP_1: case NEWS_ITEM_PEEP_ON_RIDE:
case NEWS_ITEM_PEEP_2: case NEWS_ITEM_PEEP:
if (newsItem->flags & 1) if (newsItem->flags & 1)
break; break;