mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-03-01 03:30:04 +00:00
OMG how many times will I fix the lamp.
This commit is contained in:
parent
073457d56d
commit
16f411adde
@ -1618,10 +1618,11 @@ def nextLampFrame()#0
|
||||
if showingLamp
|
||||
n = lampFrame - LAMP_1
|
||||
n = n + lampDir
|
||||
if n < 0
|
||||
n = n + (LAMP_COUNT-1)
|
||||
elsif n >= (LAMP_COUNT-1)
|
||||
n = n - (LAMP_COUNT-1)
|
||||
while n < 0
|
||||
n = n + (LAMP_COUNT-1) // because PLASMA's modulo operator adopts C's (IMO useless) behavior
|
||||
loop
|
||||
if n >= (LAMP_COUNT-1)
|
||||
n = n % (LAMP_COUNT-1)
|
||||
fin
|
||||
n = n + LAMP_1
|
||||
if (rand16() % 100) < 10
|
||||
|
Loading…
x
Reference in New Issue
Block a user