mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-16 17:21:21 +00:00
Fix some typos
This commit is contained in:
parent
724ab1727c
commit
ac6ec0cc45
2 changed files with 3 additions and 4 deletions
|
@ -1911,7 +1911,7 @@ char * D3_UTF8toISO8859_1( const char *utf8str, char *isobuf, int isobufLen, cha
|
|||
else if ( invalidChar != 0 )
|
||||
buffer[i++] = invalidChar;
|
||||
} else if ((*str & 0xf0) == 0xe0) {
|
||||
// Unicode character between 0x0800 and 0xFFF => way out of range for ISO8859-1
|
||||
// Unicode character between 0x0800 and 0xFFFF => way out of range for ISO8859-1
|
||||
// so just validate and skip the input bytes
|
||||
if (*str == 0xe0 && (str[1] < 0xa0 || str[1] > 0xbf)) return NULL;
|
||||
if (*str == 0xed && str[1] > 0x9f) return NULL; // str[1] < 0x80 is checked below
|
||||
|
|
|
@ -602,11 +602,10 @@ Those same parameters 0 and 1, plus 2 and 3, are given entirely different
|
|||
meanings in draw_arb2.cpp while light interactions are being drawn.
|
||||
This function is called again before currentRender size is needed by post processing
|
||||
effects are done, so there's no clash.
|
||||
// TODO: I'm using 4 for gamma in shaders, so the following shit must be incremented by 1
|
||||
Only parameters 0..3 were in use before #3877 - and in dhewm3 also 4, for gamma in shader.
|
||||
Now I've used a new parameter 5 for the size of _currentDepth. It's needed throughout,
|
||||
Now I've used a new parameter 22 for the size of _currentDepth. It's needed throughout,
|
||||
including by light interactions, and its size might in theory differ from _currentRender.
|
||||
Parameters 6 and 7 are used by soft particles #3878. Note these can be freely reused by different draw calls.
|
||||
Parameters 23 and 24 are used by soft particles #3878. Note these can be freely reused by different draw calls.
|
||||
==================
|
||||
*/
|
||||
void RB_SetProgramEnvironment( bool isPostProcess ) {
|
||||
|
|
Loading…
Reference in a new issue