// equalize looks better than fullbright\r
r_equalize_entities_fullbright 1\r
\r
+// UTF-8\r
+utf8_enable 1\r
+\r
// safe font defaults\r
r_font_hinting 1\r
r_font_disable_freetype 0\r
switch(c)\r
{\r
case 0:\r
- case 32:\r
- case 160:\r
+ case 32: // space\r
break;\r
+ case 192: // charmap space\r
+ if (!cvar("utf8_enable"))\r
+ break;\r
+ return FALSE;\r
+ case 160: // space in unicode fonts\r
+ case 0xE000 + 192: // utf8 charmap space\r
+ if (cvar("utf8_enable"))\r
+ break;\r
default:\r
return FALSE;\r
}\r
//description:\r
//global skybox for the map, can not be changed by QC\r
\r
+//DP_UTF8\r
+//idea: Blub\0, divVerent\r
+//darkplaces implementation: Blub\0\r
+//cvar definitions:\r
+// utf8_enable: enable utf8 encoding\r
+//description: utf8 characters are allowed inside cvars, protocol strings, files, progs strings, etc., \r
+//and count as 1 char for string functions like strlen, substring, etc.\r
+// note: utf8_enable is run-time cvar, could be changed during execution\r
+// note: beware that str2chr() could return value bigger than 255 once utf8 is enabled\r
+\r
//DP_HALFLIFE_MAP\r
//idea: LordHavoc\r
//darkplaces implementation: LordHavoc\r