1. function construct_Entity5 takes integer this, player owner, real pos_x, real pos_y, real pos_z, real radius, string wurstStackTrace returns nothing
  2. local string wurstStackTrace_2
  3. set Entity_pos[this] = Vectors_ZERO3_x
  4. set Entity_pos_2[this] = Vectors_ZERO3_y
  5. set Entity_pos_3[this] = Vectors_ZERO3_z
  6. set Entity_done[this] = false
  7. set DupletListModule_active[this] = true
  8. set wurstStackTrace_2 = "\n DupletListModule, line 19" + "\n DupletListModule, line 18" + wurstStackTrace
  9. if Entity_typeId[this] == 0 then
  10. if this == 0 then
  11. call error("Nullpointer exception when calling Entity.addToActive", "" + wurstStackTrace_2)
  12. else
  13. call error("Called Entity.addToActive on invalid object.", "" + wurstStackTrace_2)
  14. endif
  15. endif
  16. set DupletListModule_activeSize = DupletListModule_activeSize + 1
  17. if DupletListModule_activeSize == 1 then
  18. set DupletListModule_firstActive = this
  19. set DupletListModule_prev[this] = 0
  20. else
  21. set DupletListModule_prev[this] = DupletListModule_lastActive
  22. set DupletListModule_next[DupletListModule_lastActive] = this
  23. set DupletListModule_prev[DupletListModule_firstActive] = this
  24. endif
  25. set DupletListModule_next[this] = 0
  26. set DupletListModule_lastActive = this
  27. set wurstStackTrace = "\n Entity, line 59" + wurstStackTrace
  28. if Entity_typeId[this] == 0 then
  29. if this == 0 then
  30. call error("Nullpointer exception when calling Entity.setupEntity", "" + wurstStackTrace)
  31. else
  32. call error("Called Entity.setupEntity on invalid object.", "" + wurstStackTrace)
  33. endif
  34. endif
  35. set Entity_pos[this] = pos_x
  36. set Entity_pos_2[this] = pos_y
  37. set Entity_pos_3[this] = pos_z
  38. set Entity_owner[this] = owner
  39. endfunction

goto line:
Compare with:
text copy window edit this code post new code