equal
deleted
inserted
replaced
27 #include "helpers.hpp" |
27 #include "helpers.hpp" |
28 #include "cargotype.h" |
28 #include "cargotype.h" |
29 #include "group.h" |
29 #include "group.h" |
30 #include "debug.h" |
30 #include "debug.h" |
31 #include "newgrf_townname.h" |
31 #include "newgrf_townname.h" |
|
32 #include "vehicle.h" |
32 |
33 |
33 /* for opendir/readdir/closedir */ |
34 /* for opendir/readdir/closedir */ |
34 # include "fios.h" |
35 # include "fios.h" |
35 |
36 |
36 DynamicLanguages _dynlang; |
37 DynamicLanguages _dynlang; |
856 assert(IsValidGroup(g)); |
857 assert(IsValidGroup(g)); |
857 |
858 |
858 args[0] = g->index; |
859 args[0] = g->index; |
859 buff = GetStringWithArgs(buff, (g->string_id == STR_SV_GROUP_NAME) ? (StringID)STR_GROUP_NAME_FORMAT : g->string_id, args, last); |
860 buff = GetStringWithArgs(buff, (g->string_id == STR_SV_GROUP_NAME) ? (StringID)STR_GROUP_NAME_FORMAT : g->string_id, args, last); |
860 |
861 |
|
862 break; |
|
863 } |
|
864 |
|
865 case SCC_VEHICLE_NAME: { // {VEHICLE} |
|
866 const Vehicle *v = GetVehicle(GetInt32(&argv)); |
|
867 |
|
868 int64 args[1]; |
|
869 args[0] = v->unitnumber; |
|
870 |
|
871 buff = GetStringWithArgs(buff, v->string_id, args, last); |
861 break; |
872 break; |
862 } |
873 } |
863 |
874 |
864 case SCC_SETCASE: { // {SETCASE} |
875 case SCC_SETCASE: { // {SETCASE} |
865 /* This is a pseudo command, it's outputted when someone does {STRING.ack} |
876 /* This is a pseudo command, it's outputted when someone does {STRING.ack} |