Skip to content

Commit

Permalink
* fix teleport_object
Browse files Browse the repository at this point in the history
- removed jump_to_level; unnecessary
  • Loading branch information
revolucas authored and Xottab-DUTY committed Aug 14, 2017
1 parent 546c456 commit e073223
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/xrGame/alife_simulator_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ bool dont_has_info(const CALifeSimulator* self, const ALife::_OBJECT_ID& id, LPC
return (!has_info(self, id, info_id));
}

//Alundaio: teleport object
void teleport_object(CALifeSimulator* alife, ALife::_OBJECT_ID id, GameGraph::_GRAPH_ID game_vertex_id, u32 level_vertex_id, const Fvector& position)
{
alife->teleport_object(id, game_vertex_id, level_vertex_id, position);
}

// void disable_info_portion (const CALifeSimulator *self, const ALife::_OBJECT_ID &id)
//{
// THROW (self);
Expand Down Expand Up @@ -353,8 +359,7 @@ SCRIPT_EXPORT(CALifeSimulator, (), {
.def("switch_distance", &CALifeSimulator::switch_distance)
.def("switch_distance", &CALifeSimulator::set_switch_distance)
//Alundaio: extend alife simulator exports
.def("jump_to_level", (void (CALifeSimulator::*) (LPCSTR))(&CALifeSimulator::jump_to_level))
.def("teleport_object", (void (CALifeSimulator::*) (ALife::_OBJECT_ID, GameGraph::_GRAPH_ID, u32, Fvector))(&CALifeSimulator::teleport_object))
.def("teleport_object", &teleport_object)
//Alundaio: END

,
Expand Down

0 comments on commit e073223

Please sign in to comment.