aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/testformspec/textures
diff options
context:
space:
mode:
authornumzero <numzer0@yandex.ru>2020-11-22 16:41:36 +0300
committerlhofhansl <larsh@apache.org>2020-11-26 12:49:10 -0800
commit560627eef8c02f8201e639c75fcd5301d3a33077 (patch)
tree6e65bb2d3891ab2878017c00d0225c4a37750de1 /games/devtest/mods/testformspec/textures
parent3077afc0a2039cd4c8d64d9df62ed9b2ba6463dc (diff)
downloadminetest-560627eef8c02f8201e639c75fcd5301d3a33077.tar.gz
minetest-560627eef8c02f8201e639c75fcd5301d3a33077.tar.bz2
minetest-560627eef8c02f8201e639c75fcd5301d3a33077.zip
Reuse seed when updating stars
The only currently relevant parameter is scale which can now be changed without resetting stars position
Diffstat (limited to 'games/devtest/mods/testformspec/textures')
0 files changed, 0 insertions, 0 deletions
class="hl kwa">if vector.equals(pos, qe.p) then return true end end return false end function iq.clear_ints_at_pos(pos) local i=1 while i<=#queue do local qe=queue[i] if not qe then table.remove(queue, i) elseif vector.equals(pos, qe.p) and (qe.e.int or qe.e.ext_int) then table.remove(queue, i) else i=i+1 end end end function iq.add(t, pos, evtdata) queue[#queue+1]={t=t+timer, p=pos, e=evtdata} run=true end function iq.mainloop(dtime) timer=timer + math.min(dtime, 0.2) local i=1 while i<=#queue do local qe=queue[i] if not qe then table.remove(queue, i) elseif timer>qe.t then table.remove(queue, i) local pos, evtdata=qe.p, qe.e local node=advtrains.ndb.get_node(pos) local ndef=minetest.registered_nodes[node.name]