summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2012-09-21 09:47:21 +0000
committeralberth <alberth@openttd.org>2012-09-21 09:47:21 +0000
commit0849fb8d36160edb163eeea563b050b3ce641edc (patch)
treec553d65c51bc5bf5553c04981b7629bf9f909df1 /src/engine.cpp
parent89988c616329a132c20a6ba79646ad8a127d8658 (diff)
downloadopenttd-0849fb8d36160edb163eeea563b050b3ce641edc.tar.xz
(svn r24535) -Doc: Two additions, lots of small spelling fixes, and some Doxygen improvements.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 541c025dd..c84a3a686 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -900,6 +900,7 @@ static void NewVehicleAvailable(Engine *e)
if (e->type == VEH_SHIP) InvalidateWindowData(WC_BUILD_TOOLBAR, TRANSPORT_WATER);
}
+/** Monthly update of the availability, reliability, and preview offers of the engines. */
void EnginesMonthlyLoop()
{
if (_cur_year < _year_engine_aging_stops) {
@@ -932,6 +933,11 @@ void EnginesMonthlyLoop()
}
}
+/**
+ * Is \a name still free as name for an engine?
+ * @param name New name of an engine.
+ * @return \c false if the name is being used already, else \c true.
+ */
static bool IsUniqueEngineName(const char *name)
{
const Engine *e;