diff options
author | Joursoir <chat@joursoir.net> | 2020-12-10 16:02:46 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2020-12-10 16:02:46 +0000 |
commit | 05750c44046f320109055aa5954ef0bbd977705f (patch) | |
tree | a39094e5eead788c48c9b4df0db379f4f45be26c /src/client/clui/main.cpp | |
parent | 4131de177e36b19b20b8bbdb7bd43b18b6e22690 (diff) | |
download | want-chat-05750c44046f320109055aa5954ef0bbd977705f.tar.gz want-chat-05750c44046f320109055aa5954ef0bbd977705f.tar.bz2 want-chat-05750c44046f320109055aa5954ef0bbd977705f.zip |
refactor clui: delete class ChatRoom, create own class for chat, players, tips (new), input
Diffstat (limited to 'src/client/clui/main.cpp')
-rw-r--r-- | src/client/clui/main.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/clui/main.cpp b/src/client/clui/main.cpp index fd77708..876e6f9 100644 --- a/src/client/clui/main.cpp +++ b/src/client/clui/main.cpp @@ -5,7 +5,6 @@ #include "../../config.hpp" #include "Client.hpp" -#include "clui.hpp" int main(int argc, char *argv[]) { @@ -20,8 +19,7 @@ int main(int argc, char *argv[]) return 1; } - ChatRoom *room = new ChatRoom(); - Client *user = new Client(SERVER_IP, SERVER_PORT, room); + Client *user = new Client(SERVER_IP, SERVER_PORT); if(user->ConstuctorError()) { endwin(); perror("server"); @@ -29,7 +27,6 @@ int main(int argc, char *argv[]) } while(user->Run()); - delete room; delete user; endwin(); |