Ivanovic points out editor seems to think we can have 10 players,

...but we can only have 9 AFAICT.

Inserted a space (no translation change!) in player number selection dialog.

Editor seemed to think that player 10 would use '0', but there's no
code in wesnoth to support that that I can see.
This commit is contained in:
Rusty Russell 2006-06-11 11:50:38 +00:00
parent 950b8fae19
commit 442313cb70

View file

@ -48,7 +48,7 @@
#include <cmath>
namespace {
const int num_players = 10;
const int num_players = 9;
// Milliseconds to sleep in every iteration of the main loop.
const unsigned int sdl_delay = 20;
const std::string prefs_filename = get_dir(get_user_data_dir() + "/editor")
@ -458,7 +458,6 @@ void map_editor::perform_set_starting_pos() {
gui::OK_CANCEL, &players);
if (res >= 0) {
res++;
if (res == num_players) res = 0;
set_starting_position(res, selected_hex_);
}
}
@ -1241,11 +1240,11 @@ void map_editor::recalculate_starting_pos_labels() {
}
starting_positions_.clear();
// Set new labels.
for (int i = 0; i < 10; i++) {
for (int i = 1; i < 10; i++) {
gamemap::location loc = map_.starting_position(i);
if (loc.valid()) {
std::stringstream ss;
ss << _("Player") << i;
ss << _("Player") << " " << i;
gui_.labels().set_label(loc, ss.str());
starting_positions_.push_back(loc);
}