Remove leftover debug prints

pull/729/head
Jonathan G Rennison 1 month ago
parent 16dfb84978
commit 782840a62b

@ -8,7 +8,6 @@
/** @file departures.cpp Scheduled departures from a station. */
#include "stdafx.h"
#include "debug.h"
#include "gui.h"
#include "textbuf_gui.h"
#include "strings_func.h"
@ -99,10 +98,8 @@ static uint8_t GetDepartureConditionalOrderMode(const Order *order, const Vehicl
}
if (order->GetConditionVariable() == OCV_DISPATCH_SLOT) {
if (GB(order->GetConditionValue(), ODCB_SRC_START, ODCB_SRC_COUNT) == ODCS_VEH) {
if (v->index == 67) DEBUG(misc, 0, "%ld: veh test", eval_tick.base());
auto record = records.find(std::make_pair(GB(order->GetXData(), 0, 16), v->index));
if (record != records.end()) {
if (v->index == 67) DEBUG(misc, 0, "got record: %ld, %d, %d, %d", record->second.dispatched.base(), record->second.offset, record->second.slot_flags, record->second.record_flags);
/* SchdispatchCacheEntry contains a last dispatch entry, use that instead of the one stored in the vehicle */
extern bool EvaluateDispatchSlotConditionalOrderVehicleRecord(const Order *order, const LastDispatchRecord &record);
return EvaluateDispatchSlotConditionalOrderVehicleRecord(order, record->second) ? 1 : 2;

Loading…
Cancel
Save