# to use, copy, modify, and distribute this software is granted under
# terms provided in the LICENSE file distributed with this software.
# core objects for the mudpy engine
# to use, copy, modify, and distribute this software is granted under
# terms provided in the LICENSE file distributed with this software.
# core objects for the mudpy engine
# there are still connected users
while not mudpy.misc.universe.terminate_flag or mudpy.misc.universe.userlist:
# there are still connected users
while not mudpy.misc.universe.terminate_flag or mudpy.misc.universe.userlist:
- # the world was flagged for a reload of all code/data
- if mudpy.misc.universe.reload_flag:
- reload(mudpy)
- mudpy.misc.reload_data()
- mudpy.misc.universe.reload_flag = False
+ # the world was flagged for a reload of all code/data
+ if mudpy.misc.universe.reload_flag:
+ imp.reload(mudpy)
+ mudpy.misc.reload_data()
+ mudpy.misc.universe.reload_flag = False