Skip to content

Commit

Permalink
set undo functions in edit static
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Oct 7, 2024
1 parent 8f0c935 commit d5aac0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions game/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void mpremip(bool local)

ICOMMAND(remip, "", (), mpremip(true));

void pasteundo(undoblock *u)
static void pasteundo(undoblock *u)
{
if(u->numents)
{
Expand All @@ -67,7 +67,7 @@ void pasteundo(undoblock *u)
}
}

void swapundo(std::deque<undoblock *>& a, std::deque<undoblock *>& b, int op)
static void swapundo(std::deque<undoblock *> &a, std::deque<undoblock *> &b, int op)
{
if(noedit())
{
Expand Down Expand Up @@ -146,8 +146,8 @@ void swapundo(std::deque<undoblock *>& a, std::deque<undoblock *>& b, int op)
forcenextundo();
}

void editundo() { swapundo(undos, redos, Edit_Undo); }
void editredo() { swapundo(redos, undos, Edit_Redo); }
static void editundo() { swapundo(undos, redos, Edit_Undo); }
static void editredo() { swapundo(redos, undos, Edit_Redo); }

void mpcopy(editinfo *&e, selinfo &sel, bool local)
{
Expand Down

0 comments on commit d5aac0e

Please sign in to comment.