Просмотр исходного кода

Fixed checkquest script for checking HUNTING time if time limit is reached or not

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17395 54d463be-8e91-2dee-dedb-b68131a5f0ec
cydh 12 лет назад
Родитель
Сommit
2b7524d288
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/map/quest.c

+ 1 - 1
src/map/quest.c

@@ -273,7 +273,7 @@ int quest_check(TBL_PC * sd, int quest_id, quest_check_type type) {
 					ARR_FIND(0, MAX_QUEST_OBJECTIVES, j, sd->quest_log[i].count[j] < quest_db[sd->quest_index[i]].count[j]);
 					if( j == MAX_QUEST_OBJECTIVES )
 						return 2;
-					if( sd->quest_log[i].time < (unsigned int)time(NULL) )
+					if( sd->quest_log[i].time > 0 && sd->quest_log[i].time < (unsigned int)time(NULL) )
 						return 1;
 					return 0;
 				} else