Files @ r11578:ecd0c4fe5dec
Branch filter:

Location: cpp/openttd-patchpack/source/src/ai/api/ai_accounting.cpp

rubidium
(svn r15953) -Fix [FS#2783]: left - right != width causing strings to be truncated too early
/* $Id$ */

/** @file ai_accounting.cpp Implementation of AIAccounting. */

#include "ai_accounting.hpp"

Money AIAccounting::GetCosts()
{
	return this->GetDoCommandCosts();
}

void AIAccounting::ResetCosts()
{
	this->SetDoCommandCosts(0);
}

AIAccounting::AIAccounting()
{
	this->last_costs = this->GetDoCommandCosts();
	this->SetDoCommandCosts(0);
}

AIAccounting::~AIAccounting()
{
	this->SetDoCommandCosts(this->last_costs);
}