removed uses of world_num_objects from world.c and replaced them with _world_objects.num
parent
c1fa6e2956
commit
d915047bd1
|
@ -64,7 +64,7 @@ object_t* instantiate_object(const object_t *original) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void world_update() {
|
void world_update() {
|
||||||
for(int i = 0; i < world_num_objects(); ++i) {
|
for(int i = 0; i < _world_objects.num; ++i) {
|
||||||
object_t* object = world_get_object(i);
|
object_t* object = world_get_object(i);
|
||||||
if(!object_is_valid(object)
|
if(!object_is_valid(object)
|
||||||
&& object->evt_update != NULL) {
|
&& object->evt_update != NULL) {
|
||||||
|
@ -74,7 +74,7 @@ void world_update() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void world_draw() {
|
void world_draw() {
|
||||||
for(int i = 0; i < world_num_objects(); ++i) {
|
for(int i = 0; i < _world_objects.num; ++i) {
|
||||||
object_t* object = world_get_object(i);
|
object_t* object = world_get_object(i);
|
||||||
if(!object_is_valid(object)
|
if(!object_is_valid(object)
|
||||||
&& object->evt_draw != NULL) {
|
&& object->evt_draw != NULL) {
|
||||||
|
|
Loading…
Reference in New Issue