소스 검색

Fix teleport typo cuasing some crashs.
Fix sql backward rules for makefile

Lighta 10 년 전
부모
커밋
f8f6a1f101
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      Makefile.in
  2. 1 1
      src/map/unit.c

+ 2 - 2
Makefile.in

@@ -20,7 +20,7 @@ endif
 
 
 #####################################################################
-.PHONY: all server  \
+.PHONY: all server sql \
 	common \
 	mt19937ar \
 	login \
@@ -34,7 +34,7 @@ endif
 
 all: $(ALL_DEPENDS)
 
-sql:
+sql: $(SERVER_DEPENDS)
 	@echo "-!- 'make sql' is now deprecated. Please run 'make server' to continue. -!-"
 
 server: $(SERVER_DEPENDS)

+ 1 - 1
src/map/unit.c

@@ -188,7 +188,7 @@ int unit_teleport_timer(int tid, unsigned int tick, int id, intptr_t data)
 		TBL_PC *msd = unit_get_master(bl);
 		if(msd && !check_distance_bl(&msd->bl, bl, data)) {
 			*mast_tid = INVALID_TIMER;
-			unit_warp(bl, msd->bl.id, msd->bl.x, msd->bl.y, CLR_TELEPORT );
+			unit_warp(bl, msd->bl.m, msd->bl.x, msd->bl.y, CLR_TELEPORT );
 		}
 		else // No timer needed
 			*mast_tid = INVALID_TIMER;