aboutsummaryrefslogtreecommitdiff
path: root/advtrains/advtrains_train_subway
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-01-24 19:09:33 +0100
committerorwell96 <mono96.mml@gmail.com>2017-01-24 19:09:33 +0100
commita2d0b1b8f2f6ba2864e1dbbfc2457583114152ea (patch)
tree7be8bd62f5e2069899b4e3759c4031482fb00592 /advtrains/advtrains_train_subway
parent631e77b1898baeee96418e9011a1d9c0dc2d7162 (diff)
downloadadvtrains-a2d0b1b8f2f6ba2864e1dbbfc2457583114152ea.tar.gz
advtrains-a2d0b1b8f2f6ba2864e1dbbfc2457583114152ea.tar.bz2
advtrains-a2d0b1b8f2f6ba2864e1dbbfc2457583114152ea.zip
Create new models and textures for japanese train
Diffstat (limited to 'advtrains/advtrains_train_subway')
-rw-r--r--advtrains/advtrains_train_subway/init.lua8
-rw-r--r--advtrains/advtrains_train_subway/models/advtrains_subway_wagon.b3dbin459309 -> 460013 bytes
2 files changed, 4 insertions, 4 deletions
diff --git a/advtrains/advtrains_train_subway/init.lua b/advtrains/advtrains_train_subway/init.lua
index 53e0a70..766081e 100644
--- a/advtrains/advtrains_train_subway/init.lua
+++ b/advtrains/advtrains_train_subway/init.lua
@@ -20,12 +20,12 @@ advtrains.register_wagon("subway_wagon", {
},
doors={
open={
- [-1]={frames={x=0, y=19}, time=1},
- [1]={frames={x=40, y=59}, time=1}
+ [-1]={frames={x=0, y=20}, time=1},
+ [1]={frames={x=40, y=60}, time=1}
},
close={
- [-1]={frames={x=20, y=39}, time=1},
- [1]={frames={x=60, y=81}, time=1}
+ [-1]={frames={x=20, y=40}, time=1},
+ [1]={frames={x=60, y=80}, time=1}
}
},
visual_size = {x=1, y=1},
diff --git a/advtrains/advtrains_train_subway/models/advtrains_subway_wagon.b3d b/advtrains/advtrains_train_subway/models/advtrains_subway_wagon.b3d
index 8f35769..cbd0f8e 100644
--- a/advtrains/advtrains_train_subway/models/advtrains_subway_wagon.b3d
+++ b/advtrains/advtrains_train_subway/models/advtrains_subway_wagon.b3d
Binary files differ
d='n226' href='#n226'>226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include <string>
#include <cstring>
#include <iostream>
#include <cstdlib>
#include "gettext.h"
#include "util/string.h"
#include "log.h"

#if USE_GETTEXT && defined(_MSC_VER)
#include <windows.h>
#include <map>
#include <direct.h>
#include "filesys.h"

#define setlocale(category, localename) \
	setlocale(category, MSVC_LocaleLookup(localename))

static std::map<std::wstring, std::wstring> glb_supported_locales;

/******************************************************************************/
BOOL CALLBACK UpdateLocaleCallback(LPTSTR pStr)
{
	char* endptr = 0;
	int LOCALEID = strtol(pStr, &endptr,16);

	wchar_t buffer[LOCALE_NAME_MAX_LENGTH];
	memset(buffer, 0, sizeof(buffer));
	if (GetLocaleInfoW(
		LOCALEID,
		LOCALE_SISO639LANGNAME,
		buffer,
		LOCALE_NAME_MAX_LENGTH)) {

		std::wstring name = buffer;

		memset(buffer, 0, sizeof(buffer));
		GetLocaleInfoW(
		LOCALEID,
		LOCALE_SISO3166CTRYNAME,
		buffer,
		LOCALE_NAME_MAX_LENGTH);

		std::wstring country = buffer;

		memset(buffer, 0, sizeof(buffer));
		GetLocaleInfoW(
		LOCALEID,
		LOCALE_SENGLISHLANGUAGENAME,
		buffer,
		LOCALE_NAME_MAX_LENGTH);

		std::wstring languagename = buffer;

		/* set both short and long variant */
		glb_supported_locales[name] = languagename;
		glb_supported_locales[name + L"_" + country] = languagename;
	}
	return true;
}

/******************************************************************************/
const char* MSVC_LocaleLookup(const char* raw_shortname) {

	/* NULL is used to read locale only so we need to return it too */
	if (raw_shortname == NULL) return NULL;

	std::string shortname(raw_shortname);