MantisBT - Zandronum
View Issue Details
0003929Zandronum[All Projects] Bugpublic2021-12-07 16:242021-12-07 16:24
Mr. Satan 
 
normalminoralways
newopen 
MicrosoftWindows8.1
3.1-beta 
 
0003929: Net code can not handle 0 duration loops in DECORATE properly.
Net code can not handle 0 duration loops in DECORATE properly when using normal flow controls (Loop/Goto).

This will cause the error message: "Warning: Breaking infinite loop in actor %s.\nCurrent offset from spawn state is %ld\n"
  State:
    TNT1 A 0 A_SetUserVar("user_loop",0)
  StateLoop:
    TNT1 A 0 Do Stuff
    TNT1 A 0 A_SetUserVar("user_loop",user_loop + 1)
    TNT1 A 0 A_JumpIf(user_loop == 10,1)
    Loop/Goto StateLoop
    TNT1 A 0 Do more stuff
But this works fine for some reason:
  State:
    TNT1 A 0 A_SetUserVar("user_loop",0)
  StateLoop:
    TNT1 A 0 Do Stuff
    TNT1 A 0 A_SetUserVar("user_loop",user_loop + 1)
    TNT1 A 0 A_JumpIf(user_loop == 10,2)
    TNT1 A 0 A_Jump(256,"StateLoop")
    TNT1 A 0 Do more stuff
No tags attached.
Issue History
2021-12-07 16:24Mr. SatanNew Issue

There are no notes attached to this issue.