From f906959a09d58c85d87b445fd1791d91bf278bfa Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 15 Nov 2013 17:51:29 -0800 Subject: Use new IO classes --- src/map/pc.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/map/pc.cpp') diff --git a/src/map/pc.cpp b/src/map/pc.cpp index a723555..618d491 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -4,13 +4,12 @@ #include #include -#include - #include "../strings/fstring.hpp" #include "../strings/zstring.hpp" +#include "../io/read.hpp" + #include "../common/cxxstdio.hpp" -#include "../common/io.hpp" #include "../common/nullpo.hpp" #include "../common/random.hpp" #include "../common/socket.hpp" @@ -778,11 +777,11 @@ int pc_authok(int id, int login_id2, TimeT connect_until_time, void pc_show_motd(dumb_ptr sd) { sd->state.seen_motd = true; - std::ifstream in(motd_txt.c_str()); + io::ReadFile in(motd_txt); if (in.is_open()) { FString buf; - while (io::getline(in, buf)) + while (in.getline(buf)) { clif_displaymessage(sd->fd, buf); } -- cgit v1.2.3-70-g09d2