소스 검색

Fixed #503
* when use the callshop, then player can't move in the game. thank to @CairoLee

Napster 9 년 전
부모
커밋
8b3b32e000
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/map/script.c

+ 3 - 0
src/map/script.c

@@ -16395,6 +16395,9 @@ BUILDIN_FUNC(callshop)
 		return SCRIPT_CMD_FAILURE;
 	}
 
+	if( sd->st )
+		sd->st->state = END;	// Fixed can't move [Naspter]
+
 	if (nd->subtype == NPCTYPE_SHOP || nd->subtype == NPCTYPE_ITEMSHOP || nd->subtype == NPCTYPE_POINTSHOP) {
 		// flag the user as using a valid script call for opening the shop (for floating NPCs)
 		sd->state.callshop = 1;