فهرست منبع

Fix tick length

time.sleep() takes seconds, not milliseconds
Frans Bergman 7 سال پیش
والد
کامیت
1a60240eea
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      citybuilder/core.py

+ 1 - 1
citybuilder/core.py

@@ -6,7 +6,7 @@ import time
 def main_loop():
     for player in list(server.players.values()):
         player.update()
-    time.sleep(100)
+    time.sleep(1)
 
 if __name__ == '__main__':
     config = yaml.load(open("config/game.yaml"))['game']