summaryrefslogtreecommitdiff
path: root/src/driver.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-06-30 16:20:16 +0000
committerrubidium <rubidium@openttd.org>2009-06-30 16:20:16 +0000
commit65191b077d25ae390feb0c84eda4d517d3668bf0 (patch)
treea3e98f3d5c5c65ac0e6e8c932d0446f2ad77c024 /src/driver.cpp
parentb7c8026a3d180deb6a5b4faa7c68da755815a416 (diff)
downloadopenttd-65191b077d25ae390feb0c84eda4d517d3668bf0.tar.xz
(svn r16702) -Change: don't implicitly fall back to the null/dedicated (video) drivers, but show an error message that no driver could be found. You can still explicitly start the null drivers thought.
Diffstat (limited to 'src/driver.cpp')
-rw-r--r--src/driver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver.cpp b/src/driver.cpp
index 1feffcc54..dd0da98b5 100644
--- a/src/driver.cpp
+++ b/src/driver.cpp
@@ -61,8 +61,8 @@ Driver *DriverFactoryBase::SelectDriver(const char *name, Driver::Type type)
if (GetDrivers().size() == 0) return NULL;
if (StrEmpty(name)) {
- /* Probe for this driver */
- for (int priority = 10; priority >= 0; priority--) {
+ /* Probe for this driver, but do not fall back to dedicated/null! */
+ for (int priority = 10; priority > 0; priority--) {
Drivers::iterator it = GetDrivers().begin();
for (; it != GetDrivers().end(); ++it) {
DriverFactoryBase *d = (*it).second;