Skip to content

Commit

Permalink
Fixed|Console: "clear" is a client-side command
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 3, 2014
1 parent 8eb2384 commit 42c7f63
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
11 changes: 11 additions & 0 deletions doomsday/client/src/dd_main.cpp
Expand Up @@ -3217,6 +3217,16 @@ D_CMD(HelpWhat)
return true;
}

#ifdef __CLIENT__
D_CMD(Clear)
{
DENG2_UNUSED3(src, argc, argv);

ClientWindow::main().console().clearLog();
return true;
}
#endif

static void consoleRegister()
{
C_VAR_CHARPTR("file-startup", &startupFiles, 0, 0, 0);
Expand Down Expand Up @@ -3245,6 +3255,7 @@ static void consoleRegister()
S_Register();

#ifdef __CLIENT__
C_CMD("clear", "", Clear);
C_CMD("update", "", CheckForUpdates);
C_CMD("updateandnotify", "", CheckForUpdatesAndNotify);
C_CMD("updatesettings", "", ShowUpdateSettings);
Expand Down
12 changes: 0 additions & 12 deletions doomsday/libdoomsday/src/console/exec.cpp
Expand Up @@ -87,7 +87,6 @@ typedef struct execbuff_s {
D_CMD(AddSub);
D_CMD(IncDec);
D_CMD(Alias);
D_CMD(Clear);
D_CMD(Echo);
D_CMD(Help);
D_CMD(If);
Expand Down Expand Up @@ -119,7 +118,6 @@ void Con_Register(void)
C_CMD("add", NULL, AddSub);
C_CMD("after", "is", Wait);
C_CMD("alias", NULL, Alias);
C_CMD("clear", "", Clear);
C_CMD("dec", NULL, IncDec);
C_CMD("echo", "s*", Echo);
C_CMD("print", "s*", Echo);
Expand Down Expand Up @@ -921,16 +919,6 @@ static void makeAlias(char *aName, char *command)
Con_AddAlias(aName, command);
}

D_CMD(Clear)
{
DENG2_UNUSED3(src, argc, argv);

#ifdef __CLIENT__
ClientWindow::main().console().clearLog();
#endif
return true;
}

D_CMD(Alias)
{
DENG2_UNUSED(src);
Expand Down

0 comments on commit 42c7f63

Please sign in to comment.