From 367e3f8d30d07de47cfb865576047895127ec109 Mon Sep 17 00:00:00 2001 From: dwachs Date: Mon, 29 Jan 2018 21:17:20 +0100 Subject: [PATCH 6/9] FIX get_available_building_size --- simutrans/trunk/simcity.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simutrans/trunk/simcity.cc b/simutrans/trunk/simcity.cc index ac2fc16..234c339 100644 --- a/simutrans/trunk/simcity.cc +++ b/simutrans/trunk/simcity.cc @@ -2927,10 +2927,10 @@ void stadt_t::get_available_building_size(const koord k, vector_tpl &size const sint8 y_off = y==0 ? -1 : (y==h-1 ? 1 : 0); const gebaeude_t* gb = gr->find(); if(gb && (x==0 || y==0 || x==w-1 || y==h-1)) { - const grund_t* neighbor_gr = welt->lookup_kartenboden(k+koord(x_off,y_off)); + const grund_t* neighbor_gr = welt->lookup_kartenboden(p+koord(x_off,y_off)); if(neighbor_gr) { const gebaeude_t* neighbor_gb = neighbor_gr->find(); - if(gb==neighbor_gb) { + if(gb->is_same_building(neighbor_gb)) { check_continue = false; break; } -- 1.8.4.5