[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src unit_display.cpp
From: |
Guillaume Melquiond |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src unit_display.cpp |
Date: |
Sun, 19 Sep 2004 12:28:53 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <address@hidden> 04/09/19 16:22:21
Modified files:
src : unit_display.cpp
Log message:
I'm surprised nobody ever complained about this: the units were not
submerged when moving/fighting, they were darkened. It was caused by a missing
parameter in the calls to draw_unit.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/unit_display.cpp.diff?tr1=1.36&tr2=1.37&r1=text&r2=text
Patches:
Index: wesnoth/src/unit_display.cpp
diff -u wesnoth/src/unit_display.cpp:1.36 wesnoth/src/unit_display.cpp:1.37
--- wesnoth/src/unit_display.cpp:1.36 Sat Sep 18 21:53:01 2004
+++ wesnoth/src/unit_display.cpp Sun Sep 19 16:22:21 2004
@@ -126,7 +126,7 @@
// disp.invalidate_animations();
disp.draw(false);
- disp.draw_unit(xpos,ypos,image,false,1.0,0,submerge);
+ disp.draw_unit(xpos, ypos, image, false, 1.0, 0, 0.0, submerge);
if(halo_effect != 0)
halo::set_location(halo_effect, xpos+disp.hex_size()/2,
ypos+disp.hex_size()/2);
@@ -751,7 +751,7 @@
const double submerge = src_submerge*pos +
dst_submerge*(1.0-pos);
if(image != NULL && !hide) {
-
disp.draw_unit(posx,posy-height_adjust,image,false,1.0,0,submerge);
+ disp.draw_unit(posx, posy - height_adjust, image,
false, 1.0, 0, 0.0, submerge);
}
const int wait_time = ticks + time_resolution - SDL_GetTicks();
- [Wesnoth-cvs-commits] wesnoth/src unit_display.cpp, Guillaume Melquiond, 2004/09/12
- [Wesnoth-cvs-commits] wesnoth/src unit_display.cpp, Guillaume Melquiond, 2004/09/18
- [Wesnoth-cvs-commits] wesnoth/src unit_display.cpp, Guillaume Melquiond, 2004/09/18
- [Wesnoth-cvs-commits] wesnoth/src unit_display.cpp, Guillaume Melquiond, 2004/09/18
- [Wesnoth-cvs-commits] wesnoth/src unit_display.cpp, Guillaume Melquiond, 2004/09/18
- [Wesnoth-cvs-commits] wesnoth/src unit_display.cpp, Guillaume Melquiond, 2004/09/18
- [Wesnoth-cvs-commits] wesnoth/src unit_display.cpp,
Guillaume Melquiond <=