mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 15:24:30 +01:00
Add newlines to the end of every file (sed/unix do this)
This commit is contained in:
@@ -272,4 +272,4 @@ static void RCT2_CALLFUNC_X(int address, int *_eax, int *_ebx, int *_ecx, int *_
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -44,4 +44,4 @@ int sound_play(rct_sound* sound, int looping, int volume, int pan, int frequency
|
||||
void sound_stop(rct_sound* sound)
|
||||
{
|
||||
RCT2_CALLPROC_1(0x00404DD8, rct_sound*, sound);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,4 +55,4 @@ typedef enum {
|
||||
RCT2_SOUND_TRACKFRICTION = 57,
|
||||
} RCT2_SOUND;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -47,4 +47,4 @@ void climate_reset(int climate)
|
||||
RCT2_GLOBAL(0x013CA750, sint8) = ecx & 0xFF;
|
||||
RCT2_GLOBAL(0x013CA752, sint8) = (ecx >> 8) & 0xFF;
|
||||
RCT2_CALLPROC_X(0x6C461C, 0, 0, 0, 0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,4 +31,4 @@ enum {
|
||||
int climate_celcius_to_fahrenheit(int celcius);
|
||||
void climate_reset(int climate);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -63,4 +63,4 @@ void config_load()
|
||||
if (!(RCT2_GLOBAL(RCT2_ADDRESS_CONFIG_FLAGS, uint8) & CONFIG_FLAG_SHOW_HEIGHT_AS_UNITS))
|
||||
RCT2_GLOBAL(0x009AACBD, sint16) = (RCT2_GLOBAL(RCT2_ADDRESS_CONFIG_METRIC, sint8) + 1) * 256;
|
||||
RCT2_GLOBAL(0x009AA00D, sint8) = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,4 +29,4 @@ enum {
|
||||
|
||||
void config_load();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -46,4 +46,4 @@ void date_reset()
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_YEAR, sint16) = MONTH_MARCH;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_DAY, sint16) = 0;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_TICKS, sint32) = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,4 +38,4 @@ int date_get_month(int months);
|
||||
int date_get_total_months(int month, int year);
|
||||
void date_reset();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -166,4 +166,4 @@ static void set_all_land_owned()
|
||||
int mapSize = RCT2_GLOBAL(RCT2_ADDRESS_MAP_SIZE, sint16);
|
||||
|
||||
RCT2_CALLPROC_X(0x006677F2, 64, 1, 64, 2, 56, (mapSize - 2) * 32, (mapSize - 2) * 32);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,4 +26,4 @@ void editor_convert_save_to_scenario();
|
||||
void trackdesigner_load();
|
||||
void trackmanager_load();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -424,4 +424,4 @@ static void game_handle_input_mouse(int x, int y, int state)
|
||||
RCT2_CALLPROC_X(0x006E8ACB, x, y, state, widgetIndex, w, widget, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,4 +25,4 @@ void game_create_windows();
|
||||
void game_update();
|
||||
void game_logic_update();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -482,4 +482,4 @@ void gfx_draw_string_left(rct_drawpixelinfo *dpi, int format, void *args, int co
|
||||
void gfx_draw_string(rct_drawpixelinfo *dpi, char *format, int colour, int x, int y)
|
||||
{
|
||||
RCT2_CALLPROC_X(0x00682702, colour, 0, x, y, format, dpi, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,4 +73,4 @@ void gfx_draw_all_dirty_blocks();
|
||||
void gfx_redraw_screen_rect(short left, short top, short right, short bottom);
|
||||
void gfx_invalidate_screen();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -301,4 +301,4 @@ static void screen_intro_skip_part()
|
||||
(*part) = 254;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +23,4 @@
|
||||
|
||||
void intro_update();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -152,4 +152,4 @@ int sub_662783(int x, int y)
|
||||
// slope logic
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -185,4 +185,4 @@ enum {
|
||||
void map_init();
|
||||
void map_update_tile_pointers();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -240,4 +240,4 @@ void news_item_get_subject_location(int type, int subject, int *x, int *y, int *
|
||||
*x = 0x8000;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,4 +57,4 @@ void news_item_init_queue();
|
||||
void news_item_update_current();
|
||||
void news_item_close_current();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -57,4 +57,4 @@ int object_load_packed()
|
||||
int eax, ebx, ecx, edx, esi, edi, ebp;
|
||||
RCT2_CALLFUNC_X(0x006AA2B7, &eax, &ebx, &ecx, &edx, &esi, &edi, &ebp);
|
||||
return eax;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,4 +38,4 @@ void object_load_list();
|
||||
void object_read_and_load_entries(HFILE hFile);
|
||||
int object_load_packed();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -288,4 +288,4 @@ void osinterface_free()
|
||||
{
|
||||
osinterface_close_window();
|
||||
SDL_Quit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,4 +45,4 @@ void osinterface_process_messages();
|
||||
void osinterface_draw();
|
||||
void osinterface_free();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -240,4 +240,4 @@ int calculate_company_value()
|
||||
result -= RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_LOAN, sint32);
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,4 +58,4 @@ int calculate_park_rating();
|
||||
int calculate_park_value();
|
||||
int calculate_company_value();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -70,4 +70,4 @@ void peep_update_all()
|
||||
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,4 +91,4 @@ typedef struct {
|
||||
int peep_get_staff_count();
|
||||
void peep_update_all();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -280,4 +280,4 @@ void *rct2_realloc(void *block, size_t numBytes)
|
||||
void rct2_free(void *block)
|
||||
{
|
||||
RCT2_CALLPROC_1(0x004068DE, void*, block);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -133,4 +133,4 @@ void *rct2_malloc(size_t numBytes);
|
||||
void *rct2_realloc(void *block, size_t numBytes);
|
||||
void rct2_free(void *block);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -149,4 +149,4 @@ void ride_init_all()
|
||||
ride_measurement = GET_RIDE_MEASUREMENT(i);
|
||||
ride_measurement->var_00 = 0xFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -205,4 +205,4 @@ int ride_get_total_queue_length(rct_ride *ride);
|
||||
int ride_get_max_queue_time(rct_ride *ride);
|
||||
void ride_init_all();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -139,4 +139,4 @@ static void decode_chunk_rotate(char *buffer, int length)
|
||||
buffer[i] = ror8(buffer[i], code);
|
||||
code = (code + 2) % 8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,4 +38,4 @@ enum {
|
||||
|
||||
int sawyercoding_read_chunk(HFILE hFile, uint8 *buffer);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -465,4 +465,4 @@ void scenario_load_and_play(rct_scenario_basic *scenario)
|
||||
strcpy(0x0135920A, s6Info->name);
|
||||
|
||||
RCT2_CALLPROC_EBPSAFE(0x00678461);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,4 +111,4 @@ void scenario_load_list();
|
||||
void scenario_load(char *path);
|
||||
void scenario_load_and_play(rct_scenario_basic *scenario);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -56,4 +56,4 @@ typedef union {
|
||||
rct_litter litter;
|
||||
} rct_sprite;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -247,4 +247,4 @@ enum {
|
||||
SPR_CREDITS_INFOGRAMES = 23230,
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -123,4 +123,4 @@ void generate_string_file()
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -398,4 +398,4 @@ enum {
|
||||
STR_PAGE_5 = STR_PAGE_1 + 4,
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -328,4 +328,4 @@ static uint8 *generate_random_script()
|
||||
script[i] = TITLE_SCRIPT_RESTART;
|
||||
|
||||
return script;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,4 +24,4 @@
|
||||
void title_load();
|
||||
void title_update();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -28,4 +28,4 @@
|
||||
void tutorial_start(int type)
|
||||
{
|
||||
RCT2_CALLPROC_X(0x0066ECC1, type, 0, 0, 0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +23,4 @@
|
||||
|
||||
void tutorial_start(int type);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -25,4 +25,4 @@ int squaredmetres_to_squaredfeet(int squaredMetres)
|
||||
// 1 metre squared = 10.7639104 feet squared
|
||||
// how its done in RCT2
|
||||
return squaredMetres * 11;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +23,4 @@
|
||||
|
||||
int squaredmetres_to_squaredfeet(int squaredMetres);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -241,4 +241,4 @@ void hide_construction_rights()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,4 +57,4 @@ void hide_land_rights();
|
||||
void show_construction_rights();
|
||||
void hide_construction_rights();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -823,4 +823,4 @@ int widget_is_active_tool(rct_window *w, int widgetIndex)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,4 +62,4 @@ int widget_is_pressed(rct_window *w, int widgetIndex);
|
||||
int widget_is_highlighted(rct_window *w, int widgetIndex);
|
||||
int widget_is_active_tool(rct_window *w, int widgetIndex);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -817,4 +817,4 @@ void window_resize(rct_window *w, int minWidth, int minHeight, int maxWidth, int
|
||||
w->height = maxHeight;
|
||||
window_invalidate(w);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -318,4 +318,4 @@ void window_park_objective_open();
|
||||
void window_ride_list_open();
|
||||
void window_cheats_open();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -193,4 +193,4 @@ static void window_cheats_draw_tab_images(rct_drawpixelinfo *dpi, rct_window *w)
|
||||
sprite_idx += w->var_48E / 4;
|
||||
gfx_draw_sprite(dpi, sprite_idx, w->x + w->widgets[WIDX_TAB_2].left, w->y + w->widgets[WIDX_TAB_2].top);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -231,4 +231,4 @@ static int window_clear_scenery_should_close()
|
||||
if (RCT2_GLOBAL(0x009DE546, uint16) != 16)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -349,4 +349,4 @@ static void window_dropdown_paint()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,4 +31,4 @@ extern uint32 gDropdownItemsChecked;
|
||||
void window_dropdown_show_text(int x, int y, int extray, uint8 colour, uint8 flags, int num_items);
|
||||
void window_dropdown_show_text_custom_width(int x, int y, int extray, uint8 colour, uint8 flags, int num_items, int width);
|
||||
void window_dropdown_show_image(int x, int y, int extray, uint8 colour, uint8 flags, int numItems, int itemWidth, int itemHeight, int numColumns);
|
||||
void window_dropdown_close();
|
||||
void window_dropdown_close();
|
||||
|
||||
@@ -626,4 +626,4 @@ static void window_game_bottom_toolbar_draw_tutorial_text(rct_drawpixelinfo *dpi
|
||||
y = window_game_bottom_toolbar_widgets[WIDX_MIDDLE_OUTSET].top + w->y + 2;
|
||||
gfx_draw_string_centred(dpi, STR_TUTORIAL, x, y, 32, 0);
|
||||
gfx_draw_string_centred(dpi, STR_PRESS_KEY_OR_MOUSE_BUTTON_FOR_CONTROL, x, y + 10, 32, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -475,4 +475,4 @@ static void window_game_top_toolbar_paint()
|
||||
imgId++;
|
||||
imgId |= (RCT2_GLOBAL(0x01357BCD, uint8) << 19) | 0xA0000000 | (RCT2_GLOBAL(0x01357BCE, uint8) << 24);
|
||||
gfx_draw_sprite(dpi, imgId, x, y);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -397,4 +397,4 @@ static int window_land_should_close()
|
||||
if (RCT2_GLOBAL(0x009DE546, sint16) != 7)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,4 +62,4 @@ void window_main_open()
|
||||
RCT2_GLOBAL(0x009E32B2, uint8) = 0;
|
||||
RCT2_GLOBAL(0x009E32B3, uint8) = 0;
|
||||
RCT2_GLOBAL(0x00F3EFA2, uint8) = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2088,4 +2088,4 @@ static void window_park_graph_draw_line_b(rct_drawpixelinfo *dpi, uint8 *history
|
||||
}
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
#pragma endregion
|
||||
|
||||
@@ -622,4 +622,4 @@ static void window_ride_list_open_all(rct_window *w)
|
||||
|
||||
RCT2_CALLPROC_X(0x006677F2, 0, 1, 0, (1 << 8) | i, 8, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,4 +49,4 @@ void window_title_exit_open()
|
||||
window->colours[0] = 140;
|
||||
window->colours[1] = 140;
|
||||
window->colours[2] = 140;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,4 +51,4 @@ void window_title_logo_open()
|
||||
window->colours[0] = 129;
|
||||
window->colours[1] = 129;
|
||||
window->colours[2] = 129;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -193,4 +193,4 @@ static void window_title_menu_paint()
|
||||
__asm mov dpi, edi
|
||||
|
||||
window_draw_widgets(w, dpi);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -402,4 +402,4 @@ static void window_scenarioselect_scrollpaint()
|
||||
|
||||
y += 24;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -237,4 +237,4 @@ static int window_water_should_close()
|
||||
if (RCT2_GLOBAL(0x009DE546, uint16) != 8)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user