ddracechat.h is used by the client, so move it to src/game

where ddracecommands.h already is.
This commit is contained in:
Alexander Akulich 2021-01-12 00:54:08 +03:00
parent dfd60e6668
commit 242aa63178
4 changed files with 3 additions and 3 deletions

View file

@ -1560,6 +1560,7 @@ set_src(GAME_SHARED GLOB src/game
bezier.h
collision.cpp
collision.h
ddracechat.h
ddracecommands.h
extrainfo.cpp
extrainfo.h
@ -1944,7 +1945,6 @@ set_src(ENGINE_SERVER GLOB_RECURSE src/engine/server
set_src(GAME_SERVER GLOB_RECURSE src/game/server
alloc.h
ddracechat.cpp
ddracechat.h
ddracecommands.cpp
entities/character.cpp
entities/character.h

View file

@ -35,7 +35,7 @@ CChat::CChat()
}
#define CHAT_COMMAND(name, params, flags, callback, userdata, help) RegisterCommand(name, params, flags, help);
#include <game/server/ddracechat.h>
#include <game/ddracechat.h>
m_Commands.sort_range();
m_Mode = MODE_NONE;

View file

@ -3047,7 +3047,7 @@ void CGameContext::OnConsoleInit()
#define CONSOLE_COMMAND(name, params, flags, callback, userdata, help) m_pConsole->Register(name, params, flags, callback, userdata, help);
#include <game/ddracecommands.h>
#define CHAT_COMMAND(name, params, flags, callback, userdata, help) m_pConsole->Register(name, params, flags, callback, userdata, help);
#include "ddracechat.h"
#include <game/ddracechat.h>
}
void CGameContext::OnInit(/*class IKernel *pKernel*/)