* Tie a GRFFile entry to an engine, to allow us to retrieve GRF parameters * etc during a game. * @param engine Engine ID to tie the GRFFile to. * @param file Pointer of GRFFile to tie. */
| 69 | * @param file Pointer of GRFFile to tie. |
| 70 | */ |
| 71 | void SetEngineGRF(EngineID engine, const GRFFile *file) |
| 72 | { |
| 73 | Engine *e = Engine::Get(engine); |
| 74 | e->grf_prop.SetGRFFile(file); |
| 75 | } |
| 76 | |
| 77 | |
| 78 | static int MapOldSubType(const Vehicle *v) |
no test coverage detected