static void characterRegisterAfterLoading( P_CHAR pc ) { World::instance()->registerObject( pc ); pc->setRegion( AllTerritories::instance()->region( pc->pos().x, pc->pos().y, pc->pos().map ) );  UINT16 max_x = Map->mapTileWidth(pc->pos().map) * 8; UINT16 max_y = Map->mapTileHeight(pc->pos().map) * 8;   if( pc->pos().x >= max_x || pc->pos().y >= max_y ) { pc->remove(); return; }
static void characterRegisterAfterLoading(P_CHAR pc) { World::instance()->registerObject(pc);
static void characterRegisterAfterLoading( P_CHAR pc ){	World::instance()->registerObject( pc );	pc->setRegion( AllTerritories::instance()->region( pc->pos().x, pc->pos().y, pc->pos().map ) );	UINT16 max_x = Map->mapTileWidth(pc->pos().map) * 8;	UINT16 max_y = Map->mapTileHeight(pc->pos().map) * 8;	// only > max_x and > max_y are invalid	if( pc->pos().x >= max_x || pc->pos().y >= max_y )	{		pc->remove();		return;	}}