[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src multiplayer_connect.cpp
From: |
Guillaume Melquiond |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src multiplayer_connect.cpp |
Date: |
Sun, 17 Oct 2004 15:42:54 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <address@hidden> 04/10/17 19:35:17
Modified files:
src : multiplayer_connect.cpp
Log message:
Make gold reappear.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/multiplayer_connect.cpp.diff?tr1=1.82&tr2=1.83&r1=text&r2=text
Patches:
Index: wesnoth/src/multiplayer_connect.cpp
diff -u wesnoth/src/multiplayer_connect.cpp:1.82
wesnoth/src/multiplayer_connect.cpp:1.83
--- wesnoth/src/multiplayer_connect.cpp:1.82 Sun Oct 17 18:47:07 2004
+++ wesnoth/src/multiplayer_connect.cpp Sun Oct 17 19:35:16 2004
@@ -1,4 +1,4 @@
-/* $Id: multiplayer_connect.cpp,v 1.82 2004/10/17 18:47:07 silene Exp $ */
+/* $Id: multiplayer_connect.cpp,v 1.83 2004/10/17 19:35:16 silene Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -450,8 +450,6 @@
r.w = 30;
r.x = left+603;
gold_bg_.push_back(surface_restorer(&disp_->video(),r));
- font::draw_text(disp_, disp_->screen_area(), font::SIZE_SMALL,
font::GOOD_COLOUR,
- "100", r.x, r.y);
combos_race_.back().enable(!save_);
combos_leader_.back().enable(!save_);
@@ -486,6 +484,7 @@
}
const config::child_itors sides = level_->child_range("side");
+ SDL_Rect rect;
for(size_t n = 0; n != combos_type_.size(); ++n) {
config& side = **(sides.first+n);
@@ -537,6 +536,17 @@
if (!save_)
player_leaders_[n].set_leader(side["type"]);
+ //Player Gold
+ rect.x = rect_.x + 603;
+ rect.y = rect_.y + 55 + (60 * n);
+ rect.w = 30;
+ rect.h = launch_.height();
+ gold_bg_[n].restore();
+ font::draw_text(disp_, disp_->screen_area(), font::SIZE_SMALL,
+ font::GOOD_COLOUR,
+ side["gold"],
+ rect.x, rect.y);
+ update_rect(rect);
}
const bool full = is_full();