(svn r11780) -Codechange: When compiling a dedicated server build, select the dedicated video driver by default.
authorpeter1138
Mon, 07 Jan 2008 16:41:03 +0000
changeset 8217 fbcb18467e34
parent 8216 3e467b27f7ce
child 8218 e6c5291965d4
(svn r11780) -Codechange: When compiling a dedicated server build, select the dedicated video driver by default.
src/video/dedicated_v.h
--- a/src/video/dedicated_v.h	Mon Jan 07 15:35:36 2008 +0000
+++ b/src/video/dedicated_v.h	Mon Jan 07 16:41:03 2008 +0000
@@ -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(); }