equal
deleted
inserted
replaced
23 #include "music.h" |
23 #include "music.h" |
24 #include "date.h" |
24 #include "date.h" |
25 #include "industry.h" |
25 #include "industry.h" |
26 #include "helpers.hpp" |
26 #include "helpers.hpp" |
27 #include "cargotype.h" |
27 #include "cargotype.h" |
|
28 #include "group.h" |
|
29 #include "debug.h" |
28 |
30 |
29 /* for opendir/readdir/closedir */ |
31 /* for opendir/readdir/closedir */ |
30 # include "fios.h" |
32 # include "fios.h" |
31 |
33 |
32 DynamicLanguages _dynlang; |
34 DynamicLanguages _dynlang; |
835 |
837 |
836 assert(IsValidTown(t)); |
838 assert(IsValidTown(t)); |
837 |
839 |
838 temp[0] = t->townnameparts; |
840 temp[0] = t->townnameparts; |
839 buff = GetStringWithArgs(buff, t->townnametype, temp, last); |
841 buff = GetStringWithArgs(buff, t->townnametype, temp, last); |
|
842 break; |
|
843 } |
|
844 |
|
845 case SCC_GROUP_NAME: { // {GROUP} |
|
846 const Group *g = GetGroup(GetInt32(&argv)); |
|
847 int32 args[1]; |
|
848 |
|
849 assert(IsValidGroup(g)); |
|
850 |
|
851 args[0] = g->index; |
|
852 buff = GetStringWithArgs(buff, (g->string_id == STR_SV_GROUP_NAME) ? (StringID)STR_GROUP_NAME_FORMAT : g->string_id, args, last); |
|
853 |
840 break; |
854 break; |
841 } |
855 } |
842 |
856 |
843 case SCC_CURRENCY_64: { // {CURRENCY64} |
857 case SCC_CURRENCY_64: { // {CURRENCY64} |
844 buff = FormatGenericCurrency(buff, _currency, GetInt64(&argv), false, last); |
858 buff = FormatGenericCurrency(buff, _currency, GetInt64(&argv), false, last); |