-SpriteManager* sprite_manager = 0;
-TileManager* tile_manager = 0;
-
-MouseCursor* mouse_cursor = 0;
-
-Font* gold_text;
-Font* blue_text;
-Font* gray_text;
-Font* white_text;
-Font* white_small_text;
-Font* white_big_text;
-
+MouseCursor* mouse_cursor = NULL;
+
+Font* gold_text = NULL;
+Font* blue_text = NULL;
+Font* gray_text = NULL;
+Font* white_text = NULL;
+Font* white_small_text = NULL;
+Font* white_big_text = NULL;
+
/* Load global images: */
gold_text = new Font("images/engine/fonts/gold.png",
"images/engine/fonts/shadow.png", 16, 18);
/* Load global images: */
gold_text = new Font("images/engine/fonts/gold.png",
"images/engine/fonts/shadow.png", 16, 18);
"images/engine/fonts/shadow.png", 16, 18, 3);
white_text = new Font("images/engine/fonts/white.png",
"images/engine/fonts/shadow.png", 16, 18);
"images/engine/fonts/shadow.png", 16, 18, 3);
white_text = new Font("images/engine/fonts/white.png",
"images/engine/fonts/shadow.png", 16, 18);
Menu::deactive_font = gray_text;
Menu::label_font = white_big_text;
Menu::field_font = gold_text;
Menu::deactive_font = gray_text;
Menu::label_font = white_big_text;
Menu::field_font = gold_text;
- sprintf(img_name, "images/creatures/tux_grow/left-%i.png", i+1);
+ snprintf(img_name, sizeof(img_name), "images/creatures/tux_grow/left-%i.png", i+1);
- sprintf(img_name, "images/creatures/tux_grow/right-%i.png", i+1);
+ snprintf(img_name, sizeof(img_name), "images/creatures/tux_grow/right-%i.png", i+1);
fire_tux->feet = sprite_manager->create("images/creatures/tux_big/big-tux-feet.sprite");
ice_tux = new TuxBodyParts();
fire_tux->feet = sprite_manager->create("images/creatures/tux_big/big-tux-feet.sprite");
ice_tux = new TuxBodyParts();
ice_tux->body = sprite_manager->create("images/creatures/tux_big/big-tux-body.sprite");
ice_tux->arms = sprite_manager->create("images/creatures/tux_big/big-tux-arms.sprite");
ice_tux->feet = sprite_manager->create("images/creatures/tux_big/big-tux-feet.sprite");
ice_tux->body = sprite_manager->create("images/creatures/tux_big/big-tux-body.sprite");
ice_tux->arms = sprite_manager->create("images/creatures/tux_big/big-tux-arms.sprite");
ice_tux->feet = sprite_manager->create("images/creatures/tux_big/big-tux-feet.sprite");