Q3map2:
* fix: parsing of /* */ comments, having * or / inside
Radiant:
misc...
encapsulate RETURN_FALSE_IF_FAIL macros with do while 0: minus warnings
* button to call color selector from ents inspector color entry
* explanatory text on initial engine path configuration
* don't show Global preferences by default, except first start
* activate {xyview, camera, texbro glwidget} on mouse button press and scroll, so {texbro treeview and console} hotkeys do not override global ones
* activate windows, containing xyview, camera, texbro on mouse scroll
* fix: autoapplying trigger texture on entity creation is undoable
* fix: texbro m1/2 x2 work, when some tag is loaded
* bold key and spawnflags names in entity inspector entity description
* fix: +CameraFreeMove* command, +shift, -CameraFreeMove*, -shift = still moving (reason: caps letter)
This commit is contained in:
@@ -342,14 +342,14 @@ AcceleratorMap g_keydown_accelerators;
|
||||
AcceleratorMap g_keyup_accelerators;
|
||||
|
||||
bool Keys_press( PressedKeys::Keys& keys, guint keyval ){
|
||||
if ( keys.insert( keyval ).second ) {
|
||||
if ( keys.insert( gdk_keyval_to_upper( keyval ) ).second ) {
|
||||
return AcceleratorMap_activate( g_keydown_accelerators, accelerator_for_event_key( keyval, 0 ) );
|
||||
}
|
||||
return g_keydown_accelerators.find( accelerator_for_event_key( keyval, 0 ) ) != g_keydown_accelerators.end();
|
||||
}
|
||||
|
||||
bool Keys_release( PressedKeys::Keys& keys, guint keyval ){
|
||||
if ( keys.erase( keyval ) != 0 ) {
|
||||
if ( keys.erase( gdk_keyval_to_upper( keyval ) ) != 0 ) {
|
||||
return AcceleratorMap_activate( g_keyup_accelerators, accelerator_for_event_key( keyval, 0 ) );
|
||||
}
|
||||
return g_keyup_accelerators.find( accelerator_for_event_key( keyval, 0 ) ) != g_keyup_accelerators.end();
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
#define MDC_DIST_SCALE 0.05f
|
||||
|
||||
/* mdc decoding normal table */
|
||||
double mdcNormals[ 256 ][ 3 ] =
|
||||
const double mdcNormals[ 256 ][ 3 ] =
|
||||
{
|
||||
{ 1.000000, 0.000000, 0.000000 },
|
||||
{ 0.980785, 0.195090, 0.000000 },
|
||||
|
||||
@@ -219,7 +219,8 @@ inline bool string_parse_size( const char* string, std::size_t& i ){
|
||||
}
|
||||
|
||||
|
||||
#define RETURN_FALSE_IF_FAIL( expression ) if ( !expression ) {return false; }else
|
||||
//#define RETURN_FALSE_IF_FAIL( expression ) if ( !expression ) {return false; }else
|
||||
#define RETURN_FALSE_IF_FAIL( expression ) do{ if ( !expression ) {return false; } }while( 0 )
|
||||
|
||||
inline void Tokeniser_unexpectedError( Tokeniser& tokeniser, const char* token, const char* expected ){
|
||||
globalErrorStream() << Unsigned( tokeniser.getLine() ) << ":" << Unsigned( tokeniser.getColumn() ) << ": parse error at '" << ( token != 0 ? token : "#EOF" ) << "': expected '" << expected << "'\n";
|
||||
|
||||
Reference in New Issue
Block a user