Skip to content

Commit

Permalink
made it so entity count starts at 1 instead of 0 so that checking if …
Browse files Browse the repository at this point in the history
…entity_id always returns True
  • Loading branch information
Kovak committed Oct 12, 2013
1 parent 3fcae80 commit 5d0de20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kivent_cython/kivent_cython/gameworld.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ from functools import partial

class GameWorld(Widget):
state = StringProperty('initial')
number_entities = NumericProperty(0)
number_entities = NumericProperty(1)
gamescreenmanager = ObjectProperty(None)
currentmap = ObjectProperty(None, allownone = True)

Expand All @@ -21,6 +21,7 @@ class GameWorld(Widget):
cdef dict systems
super(GameWorld, self).__init__(**kwargs)
self.entities = []
self.entities.append(0)
self.states = {}
self.deactivated_entities = []
self.entities_to_remove = []
Expand Down

0 comments on commit 5d0de20

Please sign in to comment.