Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Commit 583a483

Browse files
fix comp errors
1 parent b9df8ee commit 583a483

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/internal/json/parse_json_state.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ static void core_static_updateObj(t_obj *existingObj, json_node *updates)
5555
}
5656
else if (strncmp(property->key, "moveCooldown", 12) == 0)
5757
existingObj->s_unit.move_cooldown = property->number;
58-
else if (strncmp(property->key, "countdown", 9) == 0)
59-
existingObj->s_bomb.countdown = property->number;
58+
// else if (strncmp(property->key, "countdown", 9) == 0)
59+
// existingObj->s_bomb.countdown = property->number;
6060
}
6161
}
6262

src/public/printing.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ void core_print_object(const t_obj *obj)
1010
obj->type == OBJ_UNIT ? "Unit" :
1111
obj->type == OBJ_RESOURCE ? "Resource" :
1212
obj->type == OBJ_WALL ? "Wall" :
13-
obj->type == OBJ_MONEY ? "Money" :
14-
obj->type == OBJ_BOMB ? "Bomb" : "Unknown");
13+
obj->type == OBJ_MONEY ? "Money" : "Unknown");
14+
// obj->type == OBJ_BOMB ? "Bomb" : "Unknown");
1515
printf("State: %s\n", obj->state == STATE_UNINITIALIZED ? "Uninitialized" :
1616
obj->state == STATE_ALIVE ? "Alive" :
1717
obj->state == STATE_DEAD ? "Dead" : "Unknown");
@@ -34,9 +34,9 @@ void core_print_object(const t_obj *obj)
3434
case OBJ_MONEY:
3535
printf("Balance: %lu\n", obj->s_resource_money.balance);
3636
break;
37-
case OBJ_BOMB:
38-
printf("Countdown: %lu\n", obj->s_bomb.countdown);
39-
break;
37+
// case OBJ_BOMB:
38+
// printf("Countdown: %lu\n", obj->s_bomb.countdown);
39+
// break;
4040
default:
4141
break;
4242
}

0 commit comments

Comments
 (0)