dasterintempus / tehrpg

A MUD with social and procedural features.
0 stars 0 forks source link

Refactor out 'magic' Lua objects #4

Open dasterintempus opened 10 years ago

dasterintempus commented 10 years ago

A few times rpgsystem.cpp will push a LuaProxy in a non standard fashion, with a different metatable than usual. This should be replaced whenever feasible by pushing C closures. These magic objects will break if they are passed to copyStack, as it will repush with the normal metatable.