Characters moving via scripts are pushed & popped from the rooms

The delete & create messages still need to be implemented.
This commit is contained in:
Kayne Ruse
2015-03-09 10:27:50 +11:00
parent 3d8ee25ae7
commit c3c6d42a80
5 changed files with 36 additions and 18 deletions
-1
View File
@@ -24,7 +24,6 @@
#include "entity.hpp"
static int setRoomIndex(lua_State* L) {
//TODO: (1) if this is a character, push/pop from the room system
Entity* entity = static_cast<Entity*>(lua_touserdata(L, 1));
entity->SetRoomIndex(lua_tointeger(L, 2));
return 0;