src/rail_cmd.cpp
changeset 7768 2060e8d65a72
parent 7659 5456fc83a700
child 7803 07d4e0a7a9db
equal deleted inserted replaced
7767:7d8033aa8248 7768:2060e8d65a72
  1467 					uint16 callback = GetStationCallback(CBID_STATION_SPRITE_LAYOUT, 0, 0, statspec, st, ti->tile);
  1467 					uint16 callback = GetStationCallback(CBID_STATION_SPRITE_LAYOUT, 0, 0, statspec, st, ti->tile);
  1468 					if (callback != CALLBACK_FAILED) gfx = callback;
  1468 					if (callback != CALLBACK_FAILED) gfx = callback;
  1469 				}
  1469 				}
  1470 
  1470 
  1471 				if (statspec->renderdata == NULL) {
  1471 				if (statspec->renderdata == NULL) {
  1472 					dts = GetStationTileLayout(gfx);
  1472 					dts = GetStationTileLayout(STATION_RAIL, gfx);
  1473 				} else {
  1473 				} else {
  1474 					dts = &statspec->renderdata[(gfx < statspec->tiles ? gfx : 0) + GetWaypointAxis(ti->tile)];
  1474 					dts = &statspec->renderdata[(gfx < statspec->tiles ? gfx : 0) + GetWaypointAxis(ti->tile)];
  1475 				}
  1475 				}
  1476 
  1476 
  1477 				if (dts != NULL && dts->seq != NULL) {
  1477 				if (dts != NULL && dts->seq != NULL) {