소스 검색

Fixed #4452 (#4457)

* Correction for checking SLS's days
Cydh Ramdh 5 년 전
부모
커밋
9a4648ebbf
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/map/date.cpp

+ 3 - 3
src/map/date.cpp

@@ -135,7 +135,7 @@ int date_get( enum e_date_type type )
  */
 bool is_day_of_sun(void)
 {
-	return date_get_dayofyear()%2 == 0;
+	return (date_get_dayofyear()+1)%2 == 0;
 }
 
 /*
@@ -143,7 +143,7 @@ bool is_day_of_sun(void)
  */
 bool is_day_of_moon(void)
 {
-	return date_get_dayofyear()%2 == 1;
+	return (date_get_dayofyear()+1)%2 == 1;
 }
 
 /*
@@ -151,5 +151,5 @@ bool is_day_of_moon(void)
  */
 bool is_day_of_star(void)
 {
-	return date_get_dayofyear()%5 == 0;
+	return (date_get_dayofyear()+1)%5 == 0;
 }