* Find a connection over a road from position \a x \a y to a specified zone type. * @param x Start x position of the attempt * @param y Start y position of the attempt * @param dest Zone type to go to. * @return \c 1 if connection found, \c 0 if not found, * \c -1 if no connection to road found. */
| 104 | * \c -1 if no connection to road found. |
| 105 | */ |
| 106 | short Micropolis::makeTraffic(int x, int y, ZoneType dest) |
| 107 | { |
| 108 | Position startPos; |
| 109 | startPos.posX = x; |
| 110 | startPos.posY = y; |
| 111 | return makeTraffic(startPos, dest); |
| 112 | } |
| 113 | |
| 114 | |
| 115 | /** |