- printf de debug

This commit is contained in:
attilavs2 2025-02-11 12:08:27 +01:00
parent 74c9e8b795
commit 82dbdd696d

View file

@ -260,7 +260,6 @@ void update_worker(Game *game, Worker *worker){
mach[0]->storage[4]--;
}
else {
printf("Worker full, moving\n");
ai->status = S_Transporting;
ai->dest = mach[1]->pos;
ai->going_to = 1;
@ -283,7 +282,6 @@ void update_worker(Game *game, Worker *worker){
mach[1]->storage[localres]++;
}
else{
printf("Worker empty, moving\n");
ai->status = S_Transporting;
ai->dest = mach[0]->pos;
ai->going_to = 0;
@ -313,8 +311,6 @@ void update_machine(Game *game, Machine *machine){
MachineDef *def = &machine_dict[machine->type];
bool can_output = machine->assign_workers == def->workers_required;
can_output = can_output && (machine->storage[4] <= 200);
if(machine->storage[4] <= 200)
printf("%d : Output full\n", machine->id);
for(int i = 0; i < def->input_n; i++){
if(!machine->storage[i])
can_output = false;
@ -324,8 +320,6 @@ void update_machine(Game *game, Machine *machine){
machine->storage[i]--;
}
machine->storage[4]++;
if(machine->type == MT_Furnace)
printf("Smelting...\n");
}
}