summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2010-05-19 10:58:32 -0400
committerGuillaume Seguin <guillaume@segu.in>2010-05-19 10:58:32 -0400
commit1898102cc8defaf7a61f4283d8fe8f2bae5995d4 (patch)
treea2ffd2be23c22bbbf240c3475b904427c761cd1a
parent15cf72b71c0dd2a32bd8a941bf2cb8a95da76e9d (diff)
downloadsqwareapi-1898102cc8defaf7a61f4283d8fe8f2bae5995d4.tar.gz
sqwareapi-1898102cc8defaf7a61f4283d8fe8f2bae5995d4.tar.bz2
Update mapdisplay accordingly
-rw-r--r--mapdisplay.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mapdisplay.py b/mapdisplay.py
index d17cd10..98622be 100644
--- a/mapdisplay.py
+++ b/mapdisplay.py
@@ -180,8 +180,8 @@ class SqwareaMap (gtk.DrawingArea):
% (king_id, openid,troops)
if self._incoming and (x, y) in self._incoming:
for (openid, attack) in self._incoming[x, y]:
- tooltip += "<b>Incoming attack</b> with %d troops, arrival at %s\n" \
- % (attack.troops, attack.arrival)
+ tooltip += "<b>Incoming attack</b> from %s, arrival at %s\n" \
+ % (attack.sender, attack.arrival)
if self._ongoing and (x, y) in self._ongoing:
for (openid, attack) in self._ongoing[x, y]:
tooltip += "<b>Ongoing attack</b> with %d troops, arrival at %s\n" \