diff scan.pl @ 89:86402d28544f

stop upgrade townHall after the level is 20.
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Sun, 26 Oct 2008 16:20:48 +0800
parents 0fa9cd836e1e
children 34749e907405
line wrap: on
line diff
--- a/scan.pl	Sun Oct 26 16:12:03 2008 +0800
+++ b/scan.pl	Sun Oct 26 16:20:48 2008 +0800
@@ -86,7 +86,7 @@
     my @cities = $i->viewIsland($island);
     saveCities($island, @cities);
     $i->logout;
-    return;
+    exit;
 } elsif($#ARGV == -1) {
     $i->login;
     @islands = $i->viewHomeMap();