X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=3a2ccca2a197faf55d116d37b1dcff09bd548ce3;hb=9eacc6f4e47b05a7c4942f205faac1d62b0fc289;hp=42c4ce1b0c0cb28c46d32c2a5d28b0caafa8bef6;hpb=4c3124b6e2b8454dbf25a30559676bfa1b2a1a87;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 42c4ce1b..3a2ccca2 100644 --- a/src/init.c +++ b/src/init.c @@ -102,6 +102,11 @@ void DrawInitAnim() if (!DelayReached(&action_delay, action_delay_value)) return; + if (init_last.busy.x == -1) + init_last.busy.x = WIN_XSIZE / 2; + if (init_last.busy.y == -1) + init_last.busy.y = WIN_YSIZE / 2; + x = ALIGNED_TEXT_XPOS(&init_last.busy); y = ALIGNED_TEXT_YPOS(&init_last.busy); @@ -151,7 +156,7 @@ void InitGadgets() gadgets_initialized = TRUE; } -inline void InitElementSmallImagesScaledUp(int graphic) +inline static void InitElementSmallImagesScaledUp(int graphic) { struct GraphicInfo *g = &graphic_info[graphic];