View Single Post
Old 02-19-2015   #79
Zwip-Zwap Zapony
Please just call me Zappy.
 
Zwip-Zwap Zapony's Avatar
Default

Lua crash in srb2win version 2.1.14, 1366x768 fullscreen OpenGL. If you add
Code:
COM_AddCommand("test",function(player)
    P_DoSuperTransformation(player,0)
end,0)
in a Lua file, and type "test" in the console on the title screen, the game crashes.
It can be bypassed with an "if player.mo" check, but if one forgets to add it, and someone uses the command while not in a game... crash.
The same would probably also happen with other Mobj-editing/-creating/-deleting commands whenever not in a map.
Zwip-Zwap Zapony is offline   Reply With Quote