MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / UpdateImage

Method UpdateImage

src/disaster_vehicle.cpp:112–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110};
111
112void DisasterVehicle::UpdateImage()
113{
114 SpriteID img = this->image_override;
115 if (img == 0) img = _disaster_images[this->subtype][this->direction];
116 this->sprite_cache.sprite_seq.Set(img);
117}
118
119/**
120 * Construct the disaster vehicle.

Callers 2

DisasterVehicleMethod · 0.95
UpdatePositionMethod · 0.95

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected