]> git.mxchange.org Git - quix0rs-blobwars.git/blob - patches/blobwars-1.09b2-font_error.patch
Don't link pak tool with SDL.
[quix0rs-blobwars.git] / patches / blobwars-1.09b2-font_error.patch
1 diff -u blobwars-1.09b2/src/game.cpp blobwars-1.09b2-new/src/game.cpp
2 --- blobwars-1.09b2/src/game.cpp        2008-02-29 19:07:01.000000000 +0100
3 +++ blobwars-1.09b2-new/src/game.cpp    2008-08-30 00:57:19.000000000 +0200
4 @@ -407,8 +407,7 @@
5         if (map.totalMIAs > 0)
6         {
7                 graphics.setFontColor(0xff, 0xff, 0xff, 0x00, 0x00, 0x00);
8 -               sprintf(message, "%s", _("Rescue %d MIAs"));
9 -               sprintf(message, message, map.requiredMIAs);
10 +               sprintf(message, _("Rescue %d MIAs"), map.requiredMIAs);
11                 graphics.drawString(message, col1, y, TXT_LEFT, panel);
12  
13                 if (map.foundMIAs < map.requiredMIAs)
14 diff -u blobwars-1.09b2/src/info.cpp blobwars-1.09b2-new/src/info.cpp
15 --- blobwars-1.09b2/src/info.cpp        2008-02-29 19:07:01.000000000 +0100
16 +++ blobwars-1.09b2-new/src/info.cpp    2008-08-30 01:00:48.000000000 +0200
17 @@ -233,8 +233,7 @@
18         graphics.drawString(string, col2, y, TXT_LEFT, graphics.screen);
19  
20         graphics.drawString(_("Best Combo"), col1, y += 20, TXT_RIGHT, graphics.screen);
21 -       sprintf(string, "%s", _("%d Hits"));
22 -       sprintf(string, string, game.maxComboHits);
23 +       sprintf(string, _("%d Hits"), game.maxComboHits);
24         graphics.drawString(string, col2, y, TXT_LEFT, graphics.screen);
25  
26         graphics.drawString(_("++ Inventory ++"), 320, y += 40, TXT_CENTERED, graphics.screen);
27 @@ -249,8 +248,7 @@
28         if (map.totalMIAs > 0)
29         {
30                 graphics.setFontColor(0xff, 0xff, 0xff, 0x00, 0x00, 0x00);
31 -               sprintf(message, "%s", _("Rescue %d MIAs"));
32 -               sprintf(message, message, map.requiredMIAs);
33 +               sprintf(message, _("Rescue %d MIAs"), map.requiredMIAs);
34                 graphics.drawString(message, col1, y, TXT_RIGHT, graphics.screen);
35  
36                 if (map.foundMIAs < map.requiredMIAs)
37 diff -u blobwars-1.09b2/src/mission.cpp blobwars-1.09b2-new/src/mission.cpp
38 --- blobwars-1.09b2/src/mission.cpp     2008-02-29 19:07:01.000000000 +0100
39 +++ blobwars-1.09b2-new/src/mission.cpp 2008-08-30 01:00:39.000000000 +0200
40 @@ -220,8 +220,7 @@
41         if (map.totalMIAs > 0)
42         {
43                 graphics.setFontColor(0xff, 0xff, 0xff, 0x00, 0x00, 0x00);
44 -               sprintf(message, "%s", _("Rescue %d MIAs"));
45 -               sprintf(message, message, map.requiredMIAs);
46 +               sprintf(message, _("Rescue %d MIAs"), map.requiredMIAs);
47                 graphics.drawString(message, col1, y, TXT_RIGHT, graphics.background);
48  
49                 if (map.foundMIAs < map.requiredMIAs)