Any city in the middle of the forest must have a different design, such as a buffer zone... like a ring road or a water channel, that isolates the city from the forest. I believe that the city engineers are responsible for the spread of fires and their entry into these cities.