equal
deleted
inserted
replaced
189 } |
189 } |
190 } |
190 } |
191 return NULL; |
191 return NULL; |
192 } |
192 } |
193 |
193 |
|
194 |
|
195 static void UpdateVehiclePosHash(Vehicle* v, int x, int y); |
|
196 |
194 void VehiclePositionChanged(Vehicle *v) |
197 void VehiclePositionChanged(Vehicle *v) |
195 { |
198 { |
196 int img = v->cur_image; |
199 int img = v->cur_image; |
197 Point pt = RemapCoords(v->x_pos + v->x_offs, v->y_pos + v->y_offs, v->z_pos); |
200 Point pt = RemapCoords(v->x_pos + v->x_offs, v->y_pos + v->y_offs, v->z_pos); |
198 const Sprite* spr = GetSprite(img); |
201 const Sprite* spr = GetSprite(img); |
393 return NULL; |
396 return NULL; |
394 } |
397 } |
395 |
398 |
396 |
399 |
397 |
400 |
398 void UpdateVehiclePosHash(Vehicle *v, int x, int y) |
401 static void UpdateVehiclePosHash(Vehicle* v, int x, int y) |
399 { |
402 { |
400 VehicleID *old_hash, *new_hash; |
403 VehicleID *old_hash, *new_hash; |
401 int old_x = v->left_coord; |
404 int old_x = v->left_coord; |
402 int old_y = v->top_coord; |
405 int old_y = v->top_coord; |
403 Vehicle *u; |
406 Vehicle *u; |