forked from github/server
fix bug 2237, respect lighthouse capacity.
This commit is contained in:
parent
c4dbb69681
commit
eb7dd051f8
1 changed files with 1 additions and 1 deletions
|
@ -1317,7 +1317,7 @@ static void prepare_reports(void)
|
|||
|
||||
for (u = r->units; u; u = u->next) {
|
||||
b = u->building;
|
||||
if (b && b->type == bt_lighthouse) {
|
||||
if (b && b->type == bt_lighthouse && inside_building(u)) {
|
||||
/* we are in a lighthouse. add the regions we can see from here! */
|
||||
prepare_lighthouse(b, u->faction);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue