Anyway, the code is ALMOST done (it doesn't take into account the rotation of the buildings), and, amazingly, even though it was abut 50 lines long, it worked in the first try! No cursings, no debugging! I think it's the first time in my life when something like that happens. of course, there might be some sort of latent bug that I won't discover until the game is full of users, and it will manifest tiself into existence at the worst possible time :D
Until then, there are some bugs with the client not saving/loading the map properly, so sometimes it crashes when started (a solution is to delete the map, so it will get it new from the server). I will wait for Wytter or Sadez to fix this problem, when they will have some time.