Quellcode durchsuchen

add age calculation

rachels vor 3 Jahren
Ursprung
Commit
65efc6dcdb
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      locations/cikl.qsrc

+ 2 - 0
locations/cikl.qsrc

@@ -21,6 +21,8 @@ end
 day += 1
 day += 1
 week += 1
 week += 1
 hour -= 24
 hour -= 24
+age = year - ((pcs_dob - (pcs_dob mod 10000)) / 10000)
+if ((month * 100) + day) < pcs_dob mod 10000: age -= 1
 
 
 if day > monthsEnd[month]:
 if day > monthsEnd[month]:
 	day -= monthsEnd[month]
 	day -= monthsEnd[month]