… | |
… | |
147 | if (i < 0) |
147 | if (i < 0) |
148 | golem->drop_and_destroy (); |
148 | golem->drop_and_destroy (); |
149 | else |
149 | else |
150 | { |
150 | { |
151 | newmap->insert (golem, x + freearr_x[i], y + freearr_y[i]); |
151 | newmap->insert (golem, x + freearr_x[i], y + freearr_y[i]); |
152 | golem->direction = find_dir_2 (x - golem->x, y - golem->y); |
152 | golem->direction = find_dir_2 (golem->x - x, golem->y - y); |
153 | } |
153 | } |
154 | } |
154 | } |
155 | |
155 | |
156 | /* since the players map is already loaded, we don't need to worry |
156 | /* since the players map is already loaded, we don't need to worry |
157 | * about pending objects. |
157 | * about pending objects. |