All pastes #261486 Raw Edit

Miscellany

public cpp v1 · immutable
#261486 ·published 2006-11-29 14:17 UTC
rendered paste body
	// DRESK - Support Console Closes on Toggle Console	// Modified Preprocessor Logic to CVar Logic	if (key_consoleactive && down)	{		// Check for Close on Toggle Consoles		if( !(/*con_closeontoggleconsole.integer &&*/ bind && strncmp(bind, "toggleconsole", strlen("toggleconsole") ) == 0) )		// if (!con_closeontoggleconsole.integer || strncmp(bind, "toggleconsole", strlen("toggleconsole")) || ascii == STRING_COLOR_TAG)		{ // Toggle Console Does NOT Close; Do Normal Logic			// respond to toggleconsole binds while in console unless the pressed key			// happens to be the color prefix character (such as on German keyboards)			Key_Console (key, ascii);			return;		}	}