aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_track/models/advtrains_dtrack_st_30.b3d
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-12-14 22:26:04 +0100
committerorwell96 <orwell@bleipb.de>2019-12-14 22:26:04 +0100
commitd123679b3c6e44a002ea2fb9e32daa1aa1b0663d (patch)
tree51f53ed4865aa0868c659c4ff691a9f42f4b2d65 /advtrains_train_track/models/advtrains_dtrack_st_30.b3d
parenta8ae0a5332934d61739edddeefb6d9184cfce529 (diff)
downloadadvtrains-d123679b3c6e44a002ea2fb9e32daa1aa1b0663d.tar.gz
advtrains-d123679b3c6e44a002ea2fb9e32daa1aa1b0663d.tar.bz2
advtrains-d123679b3c6e44a002ea2fb9e32daa1aa1b0663d.zip
Do not set infotext on Ks signal aspect change
Possible migitation for Linuxworks RAM explosion
Diffstat (limited to 'advtrains_train_track/models/advtrains_dtrack_st_30.b3d')
0 files changed, 0 insertions, 0 deletions
ref='#n144'>144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
/*
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 "lua_api/l_nodetimer.h"
#include "lua_api/l_internal.h"
#include "environment.h"
#include "map.h"


int NodeTimerRef::gc_object(lua_State *L) {
	NodeTimerRef *o = *(NodeTimerRef **)(lua_touserdata(L, 1));
	delete o;
	return 0;
}

NodeTimerRef* NodeTimerRef::checkobject(lua_State *L, int narg)
{
	luaL_checktype(L, narg, LUA_TUSERDATA);
	void *ud = luaL_checkudata(L, narg, className);
	if(!ud) luaL_typerror(L, narg, className);
	return *(NodeTimerRef**)ud;  // unbox pointer
}

int NodeTimerRef::l_set(lua_State *L)
{
	NodeTimerRef *o = checkobject(L, 1);
	ServerEnvironment *env = o->m_env;