changeset 8217:740d81be2083 draft

(svn r11780) -Codechange: When compiling a dedicated server build, select the dedicated video driver by default.
author peter1138 <peter1138@openttd.org>
date Mon, 07 Jan 2008 16:41:03 +0000
parents d2e97f0e9f0a
children e94985a62bc6
files src/video/dedicated_v.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/dedicated_v.h
+++ b/src/video/dedicated_v.h
@@ -22,7 +22,13 @@
 
 class FVideoDriver_Dedicated: public VideoDriverFactory<FVideoDriver_Dedicated> {
 public:
+#ifdef DEDICATED
+	/* Automatically select this dedicated driver when making a dedicated
+	 * server build. */
+	static const int priority = 10;
+#else
 	static const int priority = 0;
+#endif
 	/* virtual */ const char *GetName() { return "dedicated"; }
 	/* virtual */ const char *GetDescription() { return "Dedicated Video Driver"; }
 	/* virtual */ Driver *CreateInstance() { return new VideoDriver_Dedicated(); }