1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-23 06:29:11 +00:00

(svn r20249) -Codechange: change the newgrf name/description from a char* to a GRFText* to make translations possible

This commit is contained in:
yexo
2010-07-31 09:33:39 +00:00
parent 1ca16aa979
commit d3c1be9abd
7 changed files with 83 additions and 20 deletions

View File

@@ -20,6 +20,7 @@
#include "network_internal.h"
#include "network_udp.h"
#include "network_gamelist.h"
#include "../newgrf_text.h"
NetworkGameList *_network_game_list = NULL;
@@ -175,7 +176,7 @@ void NetworkAfterNewGRFScan()
/* Don't know the GRF, so mark game incompatible and the (possibly)
* already resolved name for this GRF (another server has sent the
* name of the GRF already */
c->name = FindUnknownGRFName(c->ident.grfid, c->ident.md5sum, true);
AddGRFTextToList(&c->name, FindUnknownGRFName(c->ident.grfid, c->ident.md5sum, true));
c->status = GCS_NOT_FOUND;
/* If we miss a file, we're obviously incompatible */

View File

@@ -28,6 +28,7 @@
#include "../company_base.h"
#include "../thread/thread.h"
#include "../rev.h"
#include "../newgrf_text.h"
#include "core/udp.h"
@@ -366,11 +367,11 @@ void ClientNetworkUDPSocketHandler::HandleIncomingNetworkGameInfoGRFConfig(GRFCo
/* Don't know the GRF, so mark game incompatible and the (possibly)
* already resolved name for this GRF (another server has sent the
* name of the GRF already */
config->name = FindUnknownGRFName(config->ident.grfid, config->ident.md5sum, true);
AddGRFTextToList(&config->name, FindUnknownGRFName(config->ident.grfid, config->ident.md5sum, true));
config->status = GCS_NOT_FOUND;
} else {
config->filename = f->filename;
config->name = f->name;
config->name = DuplicateGRFText(f->name);
config->info = f->info;
}
SetBit(config->flags, GCF_COPY);