X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fpoints.cpp;h=c4a56492ee86ed73f0c2093d7f73ecfb08e91442;hb=f03b9b7f0932b55c8a6d587681152ba601b23c77;hp=342c5be0fc09ed999fb3b4437574499d1831734b;hpb=3c73487420fde8d4a3b5360d8b99e48132517900;p=xonotic%2Fnetradiant.git diff --git a/radiant/points.cpp b/radiant/points.cpp index 342c5be0..c4a56492 100644 --- a/radiant/points.cpp +++ b/radiant/points.cpp @@ -330,9 +330,9 @@ void Pointfile_Construct(){ GlobalShaderCache().attachRenderable( s_pointfile ); - GlobalCommands_insert( "TogglePointfile", FreeCaller() ); - GlobalCommands_insert( "NextLeakSpot", FreeCaller(), Accelerator( 'K', (GdkModifierType)( GDK_SHIFT_MASK | GDK_CONTROL_MASK ) ) ); - GlobalCommands_insert( "PrevLeakSpot", FreeCaller(), Accelerator( 'L', (GdkModifierType)( GDK_SHIFT_MASK | GDK_CONTROL_MASK ) ) ); + GlobalCommands_insert( "TogglePointfile", makeCallbackF(Pointfile_Toggle) ); + GlobalCommands_insert( "NextLeakSpot", makeCallbackF(Pointfile_Next), Accelerator( 'K', (GdkModifierType)( GDK_SHIFT_MASK | GDK_CONTROL_MASK ) ) ); + GlobalCommands_insert( "PrevLeakSpot", makeCallbackF(Pointfile_Prev), Accelerator( 'L', (GdkModifierType)( GDK_SHIFT_MASK | GDK_CONTROL_MASK ) ) ); } void Pointfile_Destroy(){