|
|
@ -119,14 +119,14 @@ enum GRFExtendedLanguages {
|
|
|
|
* but according to a different lang.
|
|
|
|
* but according to a different lang.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
struct GRFText {
|
|
|
|
struct GRFText {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
static GRFText* New(byte langid, const char* text)
|
|
|
|
static GRFText *New(byte langid, const char *text)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return new(strlen(text) + 1) GRFText(langid, text);
|
|
|
|
return new (strlen(text) + 1) GRFText(langid, text);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
GRFText(byte langid_, const char* text_) : next(NULL), langid(langid_)
|
|
|
|
GRFText(byte langid_, const char *text_) : next(NULL), langid(langid_)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
strcpy(text, text_);
|
|
|
|
strcpy(text, text_);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -145,7 +145,7 @@ public:
|
|
|
|
return ::operator delete(p);
|
|
|
|
return ::operator delete(p);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
GRFText *next;
|
|
|
|
GRFText *next;
|
|
|
|
byte langid;
|
|
|
|
byte langid;
|
|
|
|
char text[];
|
|
|
|
char text[];
|
|
|
|