diff options
| author | aura <nw@moneybot.cc> | 2026-03-10 01:35:50 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-10 01:35:50 +0100 |
| commit | 8329d42d3e592f4cd42cdfa586e2325ddc76c898 (patch) | |
| tree | dec7e2a733bfc6b6384936c1f3ed067a42b59bb9 /src/editor/editor_menubar.cpp | |
| parent | 8ae8c85e9d3806cdb726e07f37e1b49484c5c48e (diff) | |
perf profiler, simplify 2d render, string struct, many small things
Diffstat (limited to 'src/editor/editor_menubar.cpp')
| -rw-r--r-- | src/editor/editor_menubar.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/editor/editor_menubar.cpp b/src/editor/editor_menubar.cpp index 5491c05..c15053f 100644 --- a/src/editor/editor_menubar.cpp +++ b/src/editor/editor_menubar.cpp @@ -267,12 +267,12 @@ static void editor_toolbar_invoke( const EDITOR_MENUBAR_ENTRY* root, const EDITO return; } if( !strcmp( root->text, "tools" ) ) { - if( !strcmp( entry->text, "none" ) ) settool( EDITOR_TOOL_NONE ); - else if( !strcmp( entry->text, "select" ) ) settool( EDITOR_TOOL_SELECT ); - else if( !strcmp( entry->text, "wall" ) ) settool( EDITOR_TOOL_WALL ); - else if( !strcmp( entry->text, "poly" ) ) settool( EDITOR_TOOL_POLY ); - else if( !strcmp( entry->text, "sprite" ) ) settool( EDITOR_TOOL_SPRITE ); - else if( !strcmp( entry->text, "ent" ) ) settool( EDITOR_TOOL_ENT ); + if( !strcmp( entry->text, "none" ) ) editor_settool( EDITOR_TOOL_NONE ); + else if( !strcmp( entry->text, "select" ) ) editor_settool( EDITOR_TOOL_SELECT ); + else if( !strcmp( entry->text, "wall" ) ) editor_settool( EDITOR_TOOL_WALL ); + else if( !strcmp( entry->text, "poly" ) ) editor_settool( EDITOR_TOOL_POLY ); + else if( !strcmp( entry->text, "sprite" ) ) editor_settool( EDITOR_TOOL_SPRITE ); + else if( !strcmp( entry->text, "ent" ) ) editor_settool( EDITOR_TOOL_ENT ); } } |
