equal
deleted
inserted
replaced
13 #include "spritecache.h" |
13 #include "spritecache.h" |
14 #include "station.h" |
14 #include "station.h" |
15 #include "sprite.h" |
15 #include "sprite.h" |
16 #include "newgrf.h" |
16 #include "newgrf.h" |
17 #include "variables.h" |
17 #include "variables.h" |
|
18 #include "string.h" |
18 #include "bridge.h" |
19 #include "bridge.h" |
19 #include "economy.h" |
20 #include "economy.h" |
20 #include "newgrf_engine.h" |
21 #include "newgrf_engine.h" |
21 |
22 |
22 /* TTDPatch extended GRF format codec |
23 /* TTDPatch extended GRF format codec |
2317 * B label The label to define |
2318 * B label The label to define |
2318 * V comment Optional comment - ignored */ |
2319 * V comment Optional comment - ignored */ |
2319 |
2320 |
2320 GRFLabel *label; |
2321 GRFLabel *label; |
2321 |
2322 |
2322 check_length(len, 1, "GRFLabel"); |
2323 check_length(len, 1, "DefineGotoLabel"); |
2323 buf++; len--; |
2324 buf++; len--; |
2324 |
2325 |
2325 label = malloc(sizeof(*label)); |
2326 label = malloc(sizeof(*label)); |
2326 label->label = grf_load_byte(&buf); |
2327 label->label = grf_load_byte(&buf); |
2327 label->nfo_line = _nfo_line; |
2328 label->nfo_line = _nfo_line; |