Merge lp:~gunchleoc/widelands/fix-codechecks into lp:widelands
- fix-codechecks
- Merge into trunk
Proposed by
GunChleoc
Status: | Merged |
---|---|
Merged at revision: | 6862 |
Proposed branch: | lp:~gunchleoc/widelands/fix-codechecks |
Merge into: | lp:widelands |
Diff against target: |
496 lines (+140/-124) 14 files modified
src/editor/tools/editor_info_tool.cc (+7/-5) src/editor/ui_menus/editor_main_menu_save_map.cc (+2/-2) src/logic/ship.cc (+4/-2) src/logic/worker.cc (+3/-3) src/network/network_gaming_messages.cc (+2/-1) src/ui_basic/editbox.cc (+5/-5) src/ui_basic/helpwindow.cc (+3/-1) src/ui_basic/panel.cc (+24/-24) src/ui_fsmenu/launchMPG.cc (+8/-5) src/ui_fsmenu/mapselect.cc (+2/-2) src/ui_fsmenu/options.cc (+1/-1) src/wlapplication.cc (+74/-70) src/wui/game_main_menu_save_game.cc (+2/-2) src/wui/productionsitewindow.cc (+3/-1) |
To merge this branch: | bzr merge lp:~gunchleoc/widelands/fix-codechecks |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Widelands Developers | Pending | ||
Review via email: mp+210082@code.launchpad.net |
Commit message
Description of the change
Just some code feng shui, no changes in functionality.
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'src/editor/tools/editor_info_tool.cc' |
2 | --- src/editor/tools/editor_info_tool.cc 2014-03-05 11:59:09 +0000 |
3 | +++ src/editor/tools/editor_info_tool.cc 2014-03-09 10:30:28 +0000 |
4 | @@ -19,8 +19,9 @@ |
5 | |
6 | #include "editor/tools/editor_info_tool.h" |
7 | |
8 | +#include <cstdio> |
9 | + |
10 | #include <boost/format.hpp> |
11 | -#include <cstdio> |
12 | |
13 | #include "editor/editorinteractive.h" |
14 | #include "i18n.h" |
15 | @@ -51,10 +52,10 @@ |
16 | char buf1[1024]; |
17 | std::string buf = _("Node:"); |
18 | buf += "\n"; |
19 | - buf += std::string("• ") + (boost::format(_("Coordinates: (%1$i, %2$i)")) % center.node.x % center.node.y).str() + "\n"; |
20 | + buf += std::string("• ") + (boost::format(_("Coordinates: (%1$i, %2$i)")) |
21 | + % center.node.x % center.node.y).str() + "\n"; |
22 | |
23 | buf += std::string("• "); |
24 | - snprintf(buf1, sizeof(buf1), _("Height: %u"),f.get_height()); |
25 | buf += buf1; |
26 | buf += std::string("\n"); |
27 | |
28 | @@ -83,7 +84,7 @@ |
29 | buf += std::string("• ") + (boost::format(_("Caps:%s")) % temp).str() + "\n"; |
30 | |
31 | buf += std::string("• "); |
32 | - snprintf(buf1, sizeof(buf1), _("Owned by %i"),f.get_owned_by()); |
33 | + snprintf(buf1, sizeof(buf1), _("Owned by %i"), f.get_owned_by()); |
34 | buf += std::string(buf1) + "\n"; |
35 | |
36 | temp = f.get_immovable() ? _("Has base immovable") : _("No base immovable"); |
37 | @@ -123,7 +124,8 @@ |
38 | // *** Map info |
39 | buf += std::string("\n") + _("Map:") + "\n"; |
40 | buf += std::string("• ") + (boost::format(_("Name: %s")) % map.get_name()).str() + "\n"; |
41 | - buf += std::string("• ") + (boost::format(_("Size: %1$ix%2$i")) % map.get_width() % map.get_height()).str() + "\n"; |
42 | + buf += std::string("• ") + (boost::format(_("Size: %1$ix%2$i")) |
43 | + % map.get_width() % map.get_height()).str() + "\n"; |
44 | |
45 | buf += std::string("• "); |
46 | snprintf(buf1, sizeof(buf1), _("Players: %i"), map.get_nrplayers()); |
47 | |
48 | === modified file 'src/editor/ui_menus/editor_main_menu_save_map.cc' |
49 | --- src/editor/ui_menus/editor_main_menu_save_map.cc 2014-03-05 11:59:09 +0000 |
50 | +++ src/editor/ui_menus/editor_main_menu_save_map.cc 2014-03-09 10:30:28 +0000 |
51 | @@ -383,8 +383,8 @@ |
52 | // Check if file exists. If so, show a warning. |
53 | if (g_fs->FileExists(complete_filename)) { |
54 | std::string s = |
55 | - (boost::format(_("A File with the name ‘%s’ already exists. Overwrite?")) % |
56 | - FileSystem::FS_Filename(filename.c_str())).str(); |
57 | + (boost::format(_("A File with the name ‘%s’ already exists. Overwrite?")) |
58 | + % FileSystem::FS_Filename(filename.c_str())).str(); |
59 | UI::WLMessageBox mbox |
60 | (&eia(), _("Error Saving Map!!"), s, UI::WLMessageBox::YESNO); |
61 | if (not mbox.run()) |
62 | |
63 | === modified file 'src/logic/ship.cc' |
64 | --- src/logic/ship.cc 2014-03-04 13:24:58 +0000 |
65 | +++ src/logic/ship.cc 2014-03-09 10:30:28 +0000 |
66 | @@ -565,8 +565,10 @@ |
67 | // Check whether the island was completely surrounded |
68 | if (get_position() == m_expedition->exploration_start) { |
69 | std::string msg_head = _("Island Circumnavigated"); |
70 | - std::string msg_body = _("An expedition ship sailed around its island without any events."); |
71 | - send_message(game, "exp_island", msg_head, msg_body, "ship_explore_island_cw.png"); |
72 | + std::string msg_body = _("An expedition ship sailed around its" |
73 | + " island without any events."); |
74 | + send_message(game, "exp_island", msg_head, msg_body, |
75 | + "ship_explore_island_cw.png"); |
76 | m_ship_state = EXP_WAITING; |
77 | return start_task_idle(game, descr().main_animation(), 1500); |
78 | } |
79 | |
80 | === modified file 'src/logic/worker.cc' |
81 | --- src/logic/worker.cc 2014-03-04 21:19:45 +0000 |
82 | +++ src/logic/worker.cc 2014-03-09 10:30:28 +0000 |
83 | @@ -603,9 +603,9 @@ |
84 | |
85 | // NOTE mirroring the above ugly hack. |
86 | // Avoiding placeholders for the resouce names to avert grammar trouble in translations. |
87 | - std::string out_of_message =_("Out of Resources"); |
88 | - if (res_type == "fish") out_of_message =_("Out of Fish"); |
89 | - else if (res_type == "stone") out_of_message =_("Out of Stone"); |
90 | + std::string out_of_message = _("Out of Resources"); |
91 | + if (res_type == "fish") out_of_message = _("Out of Fish"); |
92 | + else if (res_type == "stone") out_of_message = _("Out of Stone"); |
93 | |
94 | building.send_message |
95 | (game, |
96 | |
97 | === modified file 'src/network/network_gaming_messages.cc' |
98 | --- src/network/network_gaming_messages.cc 2014-02-25 15:04:27 +0000 |
99 | +++ src/network/network_gaming_messages.cc 2014-03-09 10:30:28 +0000 |
100 | @@ -138,7 +138,8 @@ |
101 | ngmessages["PLAYER_UPDATE_FOR_N_E_P"] = _("Server sent a player update for a player that does not exist."); |
102 | ngmessages["USER_UPDATE_FOR_N_E_U"] = _("Server sent a user update for a user that does not exist."); |
103 | ngmessages["DIFFERENT_PROTOCOL_VERS"] = _("Server uses a different protocol version"); |
104 | - ngmessages["PROTOCOL_EXCEPTION"] = _("Received command number %s, which is not allowed in this state."); |
105 | + ngmessages["PROTOCOL_EXCEPTION"] = _("Received command number %s," |
106 | + " which is not allowed in this state."); |
107 | ngmessages["BACKWARTS_RUNNING_TIME"] = _("Client reports time to host that is running backwards."); |
108 | ngmessages["SIMULATING_BEYOND_TIME"] = _("Client simulates beyond the game time allowed by the host."); |
109 | ngmessages["CLIENT_SYNC_REP_TIMEOUT"] = _("Client did not submit sync report in time."); |
110 | |
111 | === modified file 'src/ui_basic/editbox.cc' |
112 | --- src/ui_basic/editbox.cc 2014-03-05 12:49:38 +0000 |
113 | +++ src/ui_basic/editbox.cc 2014-03-09 10:30:28 +0000 |
114 | @@ -226,12 +226,12 @@ |
115 | switch (code.sym) { |
116 | case SDLK_ESCAPE: |
117 | cancel(); |
118 | - return true; |
119 | - |
120 | - case SDLK_TAB: |
121 | - //let the panel handle the tab key |
122 | + return true; |
123 | + |
124 | + case SDLK_TAB: |
125 | + //let the panel handle the tab key |
126 | return false; |
127 | - |
128 | + |
129 | case SDLK_KP_ENTER: |
130 | case SDLK_RETURN: |
131 | // Save history if active and text is not empty |
132 | |
133 | === modified file 'src/ui_basic/helpwindow.cc' |
134 | --- src/ui_basic/helpwindow.cc 2014-03-05 11:59:09 +0000 |
135 | +++ src/ui_basic/helpwindow.cc 2014-03-09 10:30:28 +0000 |
136 | @@ -188,7 +188,9 @@ |
137 | std::string path_to_script, |
138 | uint32_t width, uint32_t height) |
139 | : |
140 | - UI::UniqueWindow(parent, "help_window", ®, width, height, (boost::format(_("Help: %s")) % caption).str().c_str()), |
141 | + UI::UniqueWindow(parent, "help_window", ®, width, height, |
142 | + (boost::format(_("Help: %s")) % caption).str().c_str() |
143 | + ), |
144 | textarea(new Multiline_Textarea(this, 5, 5, width - 10, height -10, std::string(), Align_Left)) |
145 | { |
146 | LuaInterface lua; |
147 | |
148 | === modified file 'src/ui_basic/panel.cc' |
149 | --- src/ui_basic/panel.cc 2014-03-05 09:25:02 +0000 |
150 | +++ src/ui_basic/panel.cc 2014-03-09 10:30:28 +0000 |
151 | @@ -682,31 +682,31 @@ |
152 | bool Panel::handle_key(bool down, SDL_keysym code) |
153 | { |
154 | if (down) { |
155 | - if (_focus) { |
156 | - Panel * p = _focus->_next; |
157 | + if (_focus) { |
158 | + Panel * p = _focus->_next; |
159 | switch (code.sym) { |
160 | - |
161 | - case SDLK_TAB: |
162 | - while (p != _focus) { |
163 | - if (p->get_can_focus()) { |
164 | - p->focus(); |
165 | - p->update(); |
166 | - break; |
167 | - } |
168 | - if (p == _lchild) { |
169 | - p = _fchild; |
170 | - } |
171 | - else { |
172 | - p = p->_next; |
173 | - } |
174 | - } |
175 | - return true; |
176 | - |
177 | - default: |
178 | - return false; |
179 | - } |
180 | - } |
181 | - } |
182 | + |
183 | + case SDLK_TAB: |
184 | + while (p != _focus) { |
185 | + if (p->get_can_focus()) { |
186 | + p->focus(); |
187 | + p->update(); |
188 | + break; |
189 | + } |
190 | + if (p == _lchild) { |
191 | + p = _fchild; |
192 | + } |
193 | + else { |
194 | + p = p->_next; |
195 | + } |
196 | + } |
197 | + return true; |
198 | + |
199 | + default: |
200 | + return false; |
201 | + } |
202 | + } |
203 | + } |
204 | return false; |
205 | } |
206 | |
207 | |
208 | === modified file 'src/ui_fsmenu/launchMPG.cc' |
209 | --- src/ui_fsmenu/launchMPG.cc 2014-03-05 11:59:09 +0000 |
210 | +++ src/ui_fsmenu/launchMPG.cc 2014-03-09 10:30:28 +0000 |
211 | @@ -395,10 +395,11 @@ |
212 | (this, _("Saved game is directory"), |
213 | _ |
214 | ("WARNING:\n" |
215 | - "The saved game you selected is a directory. This happens if you set the option ‘nozip’ to " |
216 | + "The saved game you selected is a directory." |
217 | + " This happens if you set the option ‘nozip’ to " |
218 | "true or manually unzipped the saved game.\n" |
219 | - "Widelands is not able to transfer directory structures to the clients, please select another " |
220 | - "saved game or zip the directories’ content."), |
221 | + "Widelands is not able to transfer directory structures to the clients," |
222 | + " please select another saved game or zip the directories’ content."), |
223 | UI::WLMessageBox::OK); |
224 | warning.run(); |
225 | } |
226 | @@ -647,8 +648,10 @@ |
227 | |
228 | std::string infotext; |
229 | infotext += std::string(_("Map details:")) + "\n"; |
230 | - infotext += std::string("• ") + (format(_("Size: %1$u x %2$u")) % map.get_width() % map.get_height()).str() + "\n"; |
231 | - infotext += std::string("• ") + (format(ngettext("%u Player", "%u Players", m_nr_players)) % m_nr_players).str() + "\n"; |
232 | + infotext += std::string("• ") + (format(_("Size: %1$u x %2$u")) |
233 | + % map.get_width() % map.get_height()).str() + "\n"; |
234 | + infotext += std::string("• ") + (format(ngettext("%u Player", "%u Players", m_nr_players)) |
235 | + % m_nr_players).str() + "\n"; |
236 | infotext += std::string("• ") + (format(_("World: %s")) % world).str() + "\n"; |
237 | if (m_settings->settings().scenario) |
238 | infotext += std::string("• ") + (format(_("Scenario mode selected"))).str() + "\n"; |
239 | |
240 | === modified file 'src/ui_fsmenu/mapselect.cc' |
241 | --- src/ui_fsmenu/mapselect.cc 2014-03-05 11:59:09 +0000 |
242 | +++ src/ui_fsmenu/mapselect.cc 2014-03-09 10:30:28 +0000 |
243 | @@ -502,8 +502,8 @@ |
244 | mapdata.filename = name; |
245 | mapdata.name = dmap.path.substr(5, dmap.path.size() - 1); |
246 | mapdata.author = _("unknown"); |
247 | - mapdata.description = |
248 | - _("This map file is not present in your filesystem. The data shown here was sent by the server."); |
249 | + mapdata.description = _("This map file is not present in your filesystem." |
250 | + " The data shown here was sent by the server."); |
251 | mapdata.hint = ""; |
252 | mapdata.world = _("unknown"); |
253 | mapdata.nrplayers = dmap.players; |
254 | |
255 | === modified file 'src/ui_fsmenu/options.cc' |
256 | --- src/ui_fsmenu/options.cc 2014-03-05 11:59:09 +0000 |
257 | +++ src/ui_fsmenu/options.cc 2014-03-09 10:30:28 +0000 |
258 | @@ -21,12 +21,12 @@ |
259 | |
260 | #include <cstdio> |
261 | #include <iostream> |
262 | -#include <libintl.h> |
263 | |
264 | #include "constants.h" |
265 | #include "graphic/graphic.h" |
266 | #include "i18n.h" |
267 | #include "io/filesystem/layered_filesystem.h" |
268 | +#include "libintl.h" |
269 | #include "profile/profile.h" |
270 | #include "save_handler.h" |
271 | #include "sound/sound_handler.h" |
272 | |
273 | === modified file 'src/wlapplication.cc' |
274 | --- src/wlapplication.cc 2014-03-06 12:52:12 +0000 |
275 | +++ src/wlapplication.cc 2014-03-09 10:30:28 +0000 |
276 | @@ -19,7 +19,6 @@ |
277 | |
278 | #include "wlapplication.h" |
279 | |
280 | -#include <boost/format.hpp> |
281 | #include <cerrno> |
282 | #ifndef _WIN32 |
283 | #include <csignal> |
284 | @@ -31,6 +30,7 @@ |
285 | #include <stdexcept> |
286 | #include <string> |
287 | |
288 | +#include <boost/format.hpp> |
289 | #include <config.h> |
290 | #ifdef __APPLE__ |
291 | #include <mach-o/dyld.h> |
292 | @@ -1341,83 +1341,87 @@ |
293 | wout << _("Usage: widelands <option0>=<value0> ... <optionN>=<valueN>") << "\n\n"; |
294 | wout << _("Options:") << "\n\n"; |
295 | wout |
296 | - << _(" --<config-entry-name>=value overwrites any config file setting") << "\n\n" |
297 | - << _(" --logfile=FILENAME Log output to file FILENAME instead of \n" |
298 | + << _(" --<config-entry-name>=value overwrites any config file setting") << "\n\n" |
299 | + << _(" --logfile=FILENAME Log output to file FILENAME instead of \n" |
300 | " terminal output") << "\n" |
301 | - << _(" --datadir=DIRNAME Use specified directory for the widelands\n" |
302 | + << _(" --datadir=DIRNAME Use specified directory for the widelands\n" |
303 | " data files") << "\n" |
304 | - << _(" --homedir=DIRNAME Use specified directory for widelands config\n" |
305 | + << _(" --homedir=DIRNAME Use specified directory for widelands config\n" |
306 | " files, savegames and replays") << "\n" |
307 | #ifdef __linux__ |
308 | - << _(" Default is ~/.widelands") << "\n" |
309 | + << _(" Default is ~/.widelands") << "\n" |
310 | #endif |
311 | - << _(" --record=FILENAME Record all events to the given filename for\n" |
312 | + << _(" --record=FILENAME Record all events to the given filename for\n" |
313 | " later playback") << "\n" |
314 | - << _(" --playback=FILENAME Playback given filename (see --record)") << "\n\n" |
315 | - << _(" --coredump=[yes|no] Generates a core dump on segfaults instead\n" |
316 | + << _(" --playback=FILENAME Playback given filename (see --record)") << "\n\n" |
317 | + << _(" --coredump=[yes|no] Generates a core dump on segfaults instead\n" |
318 | " of using the SDL") << "\n" |
319 | - << _(" --language=[de_DE|sv_SE|...]\n" |
320 | + << _(" --language=[de_DE|sv_SE|...]\n" |
321 | " The locale to use.") << "\n" |
322 | - << _(" --localedir=DIRNAME Use DIRNAME as location for the locale") << "\n" |
323 | - << _(" --remove_syncstreams=[true|false]\n" |
324 | + << _(" --localedir=DIRNAME Use DIRNAME as location for the locale") << "\n" |
325 | + << _(" --remove_syncstreams=[true|false]\n" |
326 | " Remove syncstream files on startup") << "\n" |
327 | - << _(" --remove_replays=[...]\n" |
328 | - " Remove replays after this number of days.\n" |
329 | - " If this is 0, replays are not deleted.") << "\n\n" |
330 | + << _(" --remove_replays=[...]\n" |
331 | + " Remove replays after this number of days.\n" |
332 | + " If this is 0, replays are not deleted.") << "\n\n" |
333 | |
334 | - << _("Sound options:") << "\n" |
335 | - << _(" --nosound Starts the game with sound disabled.") << "\n" |
336 | - << _(" --disable_fx Disable sound effects.") << "\n" |
337 | - << _(" --disable_music Disable music.") << "\n\n" |
338 | - << _(" --nozip Do not save files as binary zip archives.") << "\n\n" |
339 | - << _(" --editor Directly starts the Widelands editor.\n" |
340 | - " You can add a =FILENAME to directly load\n" |
341 | - " the map FILENAME in editor.") << "\n" |
342 | - << _(" --scenario=FILENAME Directly starts the map FILENAME as scenario\n" |
343 | + << _("Sound options:") << "\n" |
344 | + << _(" --nosound Starts the game with sound disabled.") << "\n" |
345 | + << _(" --disable_fx Disable sound effects.") << "\n" |
346 | + << _(" --disable_music Disable music.") << "\n\n" |
347 | + << _(" --nozip Do not save files as binary zip archives.") << "\n\n" |
348 | + << _(" --editor Directly starts the Widelands editor.\n" |
349 | + " You can add a =FILENAME to directly load\n" |
350 | + " the map FILENAME in editor.") << "\n" |
351 | + << _(" --scenario=FILENAME Directly starts the map FILENAME as scenario\n" |
352 | " map.") << "\n" |
353 | - << _(" --loadgame=FILENAME Directly loads the savegame FILENAME.") << "\n" |
354 | - << _(" --script=FILENAME Run the given Lua script after initialization.\n" |
355 | - " Only valid with --scenario, --loadgame, or --editor.") << "\n" |
356 | - << _(" --dedicated=FILENAME Starts a dedicated server with FILENAME as map") << "\n" |
357 | - << _(" --auto_roadbuild_mode=[yes|no]\n" |
358 | - " Whether to enter roadbuilding mode\n" |
359 | - " automatically after placing a flag that is\n" |
360 | - " not connected to a road.") << "\n\n" |
361 | - << _("Graphic options:") << "\n" |
362 | - << _(" --fullscreen=[yes|no]\n" |
363 | - " Whether to use the whole display for the\n" |
364 | - " game screen.") << "\n" |
365 | - << _(" --xres=[...] Width of the window in pixel.") << "\n" |
366 | - << _(" --yres=[...] Height of the window in pixel.") << "\n" |
367 | - << _(" --opengl=[0|1] Enables OpenGL rendering") << "\n\n" |
368 | - << _("Options for the internal window manager:") << "\n" |
369 | - << _(" --border_snap_distance=[0 ...]\n" |
370 | - " Move a window to the edge of the screen\n" |
371 | - " when the edge of the window comes within\n" |
372 | - " this distance from the edge of the screen.") << "\n" |
373 | - << _(" --dock_windows_to_edges=[yes|no]\n" |
374 | - " Eliminate a window's border towards the\n" |
375 | - " edge of the screen when the edge of the\n" |
376 | - " window is next to the edge of the screen.") << "\n" |
377 | - << _(" --panel_snap_distance=[0 ...]\n" |
378 | - " Move a window to the edge of the panel when\n" |
379 | - " the edge of the window comes within this\n" |
380 | - " distance from the edge of the panel.") << "\n" |
381 | - << _(" --snap_windows_only_when_overlapping=[yes|no]\n" |
382 | - " Only move a window to the edge of a panel\n" |
383 | - " if the window is overlapping with the\n" |
384 | - " panel.") << "\n\n"; |
385 | + << _(" --loadgame=FILENAME Directly loads the savegame FILENAME.") << "\n" |
386 | + << _(" --script=FILENAME Run the given Lua script after initialization.\n" |
387 | + " Only valid with --scenario, --loadgame, or --editor.") << "\n" |
388 | + << _(" --dedicated=FILENAME Starts a dedicated server with FILENAME as map") << "\n" |
389 | + << _(" --auto_roadbuild_mode=[yes|no]\n" |
390 | + " Whether to enter roadbuilding mode\n" |
391 | + " automatically after placing a flag that is\n" |
392 | + " not connected to a road.") << "\n\n" |
393 | + << _("Graphic options:") << "\n" |
394 | + << _(" --fullscreen=[yes|no]\n" |
395 | + " Whether to use the whole display for the\n" |
396 | + " game screen.") << "\n" |
397 | + << _(" --xres=[...] Width of the window in pixel.") << "\n" |
398 | + << _(" --yres=[...] Height of the window in pixel.") << "\n" |
399 | + << _(" --opengl=[0|1] Enables OpenGL rendering") << "\n\n" |
400 | + << _("Options for the internal window manager:") << "\n" |
401 | + << _(" --border_snap_distance=[0 ...]\n" |
402 | + " Move a window to the edge of the screen\n" |
403 | + " when the edge of the window comes within\n" |
404 | + " this distance from the edge of the screen.") << "\n" |
405 | + << _(" --dock_windows_to_edges=[yes|no]\n" |
406 | + " Eliminate a window's border towards the\n" |
407 | + " edge of the screen when the edge of the\n" |
408 | + " window is next to the edge of the screen.") << "\n" |
409 | + << _(" --panel_snap_distance=[0 ...]\n" |
410 | + " Move a window to the edge of the panel when\n" |
411 | + " the edge of the window comes within this\n" |
412 | + " distance from the edge of the panel.") << "\n" |
413 | + << _(" --snap_windows_only_when_overlapping=[yes|no]\n" |
414 | + " Only move a window to the edge of a panel\n" |
415 | + " if the window is overlapping with the\n" |
416 | + " panel.") << "\n\n"; |
417 | #ifndef NDEBUG |
418 | #ifndef _WIN32 |
419 | - wout << _(" --double Start the game twice (for localhost network\n" |
420 | - " testing)") << "\n\n"; |
421 | -#endif |
422 | -#endif |
423 | - wout << _(" --verbose Enable verbose debug messages") << "\n" << endl; |
424 | - wout << _(" --help Show this help") << "\n" << endl; |
425 | - wout << _("Bug reports? Suggestions? Check out the project website:\n" |
426 | - " https://launchpad.net/widelands\n\n" |
427 | - "Hope you enjoy this game!") << "\n\n"; |
428 | + wout |
429 | + << _(" --double Start the game twice (for localhost network\n" |
430 | + " testing)") << "\n\n"; |
431 | +#endif |
432 | +#endif |
433 | + wout |
434 | + << _(" --verbose Enable verbose debug messages") << "\n" << endl; |
435 | + wout |
436 | + << _(" --help Show this help") << "\n" << endl; |
437 | + wout |
438 | + << _("Bug reports? Suggestions? Check out the project website:\n" |
439 | + " https://launchpad.net/widelands\n\n" |
440 | + "Hope you enjoy this game!") << "\n\n"; |
441 | } |
442 | |
443 | #ifndef NDEBUG |
444 | @@ -1878,7 +1882,7 @@ |
445 | s.players[number].state = PlayerSettings::stateComputer; |
446 | } |
447 | |
448 | - virtual void setPlayerTribe |
449 | + virtual void setPlayerTribe |
450 | (uint8_t const number, const std::string & tribe, bool const random_tribe) override |
451 | { |
452 | if (number >= s.players.size()) |
453 | @@ -1959,10 +1963,10 @@ |
454 | |
455 | virtual std::string getWinCondition() override {return s.win_condition;} |
456 | virtual void setWinCondition(std::string wc) override {s.win_condition = wc;} |
457 | - virtual void nextWinCondition() override // not implemented - feel free to do so, if you need it |
458 | - { |
459 | - assert(false); |
460 | - } |
461 | + virtual void nextWinCondition() override // not implemented - feel free to do so, if you need it |
462 | + { |
463 | + assert(false); |
464 | + } |
465 | |
466 | private: |
467 | GameSettings s; |
468 | |
469 | === modified file 'src/wui/game_main_menu_save_game.cc' |
470 | --- src/wui/game_main_menu_save_game.cc 2014-03-05 11:59:09 +0000 |
471 | +++ src/wui/game_main_menu_save_game.cc 2014-03-09 10:30:28 +0000 |
472 | @@ -262,8 +262,8 @@ |
473 | UI::WLMessageBox |
474 | (&parent, |
475 | _("Save Game Error!!"), |
476 | - (boost::format(_("A File with the name ‘%s’ already exists. Overwrite?")) % |
477 | - FileSystem::FS_Filename(filename.c_str())).str(), |
478 | + (boost::format(_("A File with the name ‘%s’ already exists. Overwrite?")) |
479 | + % FileSystem::FS_Filename(filename.c_str())).str(), |
480 | YESNO), |
481 | m_filename(filename) |
482 | {} |
483 | |
484 | === modified file 'src/wui/productionsitewindow.cc' |
485 | --- src/wui/productionsitewindow.cc 2014-03-03 20:50:30 +0000 |
486 | +++ src/wui/productionsitewindow.cc 2014-03-09 10:30:28 +0000 |
487 | @@ -78,7 +78,9 @@ |
488 | m_worker_table = new UI::Table<uintptr_t>(worker_box, 0, 0, 0, 100); |
489 | m_worker_caps = new UI::Box(worker_box, 0, 0, UI::Box::Horizontal); |
490 | |
491 | - m_worker_table->add_column(150, (ngettext("Worker", "Workers", productionsite().descr().nr_working_positions()))); |
492 | + m_worker_table->add_column(150, (ngettext |
493 | + ("Worker", "Workers", productionsite().descr().nr_working_positions()) |
494 | + )); |
495 | m_worker_table->add_column(60, _("Exp")); |
496 | m_worker_table->add_column(150, _("Next Level")); |
497 |