removed uses of world_num_objects from world.c and replaced them with _world_objects.num

pull/12/head
Sara 2023-07-12 02:25:11 +02:00
parent c1fa6e2956
commit d915047bd1
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ object_t* instantiate_object(const object_t *original) {
}
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);
if(!object_is_valid(object)
&& object->evt_update != NULL) {
@ -74,7 +74,7 @@ void world_update() {
}
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);
if(!object_is_valid(object)
&& object->evt_draw != NULL) {