mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 00:19:09 +00:00
(svn r9874) -Feature: advanced vehicle lists a.k.a. group interface. Now you can make groups of vehicles and perform all kinds of tasks on that given group. Original code by nycom and graphics by skidd13.
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
#include "industry.h"
|
||||
#include "helpers.hpp"
|
||||
#include "cargotype.h"
|
||||
#include "group.h"
|
||||
#include "debug.h"
|
||||
|
||||
/* for opendir/readdir/closedir */
|
||||
# include "fios.h"
|
||||
@@ -840,6 +842,18 @@ static char* FormatString(char* buff, const char* str, const int32* argv, uint c
|
||||
break;
|
||||
}
|
||||
|
||||
case SCC_GROUP_NAME: { // {GROUP}
|
||||
const Group *g = GetGroup(GetInt32(&argv));
|
||||
int32 args[1];
|
||||
|
||||
assert(IsValidGroup(g));
|
||||
|
||||
args[0] = g->index;
|
||||
buff = GetStringWithArgs(buff, (g->string_id == STR_SV_GROUP_NAME) ? (StringID)STR_GROUP_NAME_FORMAT : g->string_id, args, last);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case SCC_CURRENCY_64: { // {CURRENCY64}
|
||||
buff = FormatGenericCurrency(buff, _currency, GetInt64(&argv), false, last);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user