[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src display.cpp
From: |
Philippe Plantier |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src display.cpp |
Date: |
Sun, 29 Aug 2004 15:36:29 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Philippe Plantier <address@hidden> 04/08/29 19:31:39
Modified files:
src : display.cpp
Log message:
Fixed a bug where unselected units were too dark.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/display.cpp.diff?tr1=1.257&tr2=1.258&r1=text&r2=text
Patches:
Index: wesnoth/src/display.cpp
diff -u wesnoth/src/display.cpp:1.257 wesnoth/src/display.cpp:1.258
--- wesnoth/src/display.cpp:1.257 Wed Aug 25 20:05:12 2004
+++ wesnoth/src/display.cpp Sun Aug 29 19:31:39 2004
@@ -1,4 +1,4 @@
-/* $Id: display.cpp,v 1.257 2004/08/25 20:05:12 gruikya Exp $ */
+/* $Id: display.cpp,v 1.258 2004/08/29 19:31:39 gruikya Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1194,7 +1194,7 @@
const int height_adjust = it->second.is_flying() ? 0 :
int(map_.get_terrain_info(terrain).unit_height_adjust()*zoom());
const double submerge = it->second.is_flying() ? 0.0 :
map_.get_terrain_info(terrain).unit_submerge();
- double blend_ratio = 0.25;
+ double blend_ratio = 0.0;
if(loc == advancingUnit_ && it != units_.end()) {
//the unit is advancing - set the advancing colour to white if
it's a
@@ -1205,6 +1205,7 @@
} else if(it->second.poisoned() /* && highlight_ratio == 1.0 */) {
//the unit is poisoned - draw with a green hue
blend_with = rgb(0,255,0);
+ blend_ratio = 0.25;
//highlight_ratio *= 0.75;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Wesnoth-cvs-commits] wesnoth/src display.cpp,
Philippe Plantier <=