X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=3e0f01dbaba6950025412f58e1539ed5320fb4c2;hb=73b48f8afe7e1e1faf0e87436d7d74b27bba5f27;hp=cf83e5043229b5cef9326927bf2ddd34db6e83f6;hpb=3f5f1e9af1b0c10a0b0486c579c55c5e6947807d;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index cf83e504..3e0f01db 100644 --- a/src/init.c +++ b/src/init.c @@ -552,13 +552,9 @@ void InitFontGraphicInfo() font_bitmap_info[font_bitmap_id].height = graphic_info[graphic].height; font_bitmap_info[font_bitmap_id].offset_x = - (graphic_info[graphic].offset_x != 0 ? - graphic_info[graphic].offset_x : - graphic_info[graphic].width); + graphic_info[graphic].offset_x; font_bitmap_info[font_bitmap_id].offset_y = - (graphic_info[graphic].offset_y != 0 ? - graphic_info[graphic].offset_y : - graphic_info[graphic].height); + graphic_info[graphic].offset_y; font_bitmap_info[font_bitmap_id].draw_xoffset = graphic_info[graphic].draw_xoffset; @@ -5068,6 +5064,7 @@ static void InitSetup() static void InitGameInfo() { game.restart_level = FALSE; + game.restart_game_message = NULL; } static void InitPlayerInfo() @@ -5078,9 +5075,13 @@ static void InitPlayerInfo() local_player = &stored_player[0]; for (i = 0; i < MAX_PLAYERS; i++) - stored_player[i].connected = FALSE; + { + stored_player[i].connected_locally = FALSE; + stored_player[i].connected_network = FALSE; + } - local_player->connected = TRUE; + local_player->connected_locally = TRUE; + local_player->connected_network = TRUE; } static void InitArtworkInfo() @@ -5127,6 +5128,10 @@ static void InitArtworkConfig() { "name", "sort_priority", + "program_title", + "program_copyright", + "program_company", + NULL }; static char **ignore_image_tokens; @@ -5431,6 +5436,7 @@ void InitGfx() InitGfxDrawBusyAnimFunction(DrawInitAnim); InitGfxDrawGlobalAnimFunction(DrawGlobalAnimations); InitGfxDrawGlobalBorderFunction(DrawMaskedBorderToTarget); + InitGfxDrawTileCursorFunction(DrawTileCursor); gfx.fade_border_source_status = global.border_status; gfx.fade_border_target_status = global.border_status; @@ -6008,6 +6014,7 @@ void OpenAll() InitVideoDisplay(); InitVideoBuffer(WIN_XSIZE, WIN_YSIZE, DEFAULT_DEPTH, setup.fullscreen); + InitTileCursorInfo(); InitOverlayInfo(); print_timestamp_time("[init video stuff]");