diff options
author | Sean Qureshi <stqism@Risingstormgames.com> | 2013-08-03 04:12:50 -0700 |
---|---|---|
committer | Sean Qureshi <stqism@Risingstormgames.com> | 2013-08-03 04:12:50 -0700 |
commit | bc2d8579cd7926fece8c87c7e4bbfc990756a827 (patch) | |
tree | c0c2867af529e6eeed7d00ae6795b09200078110 /testing/toxic/chat.c | |
parent | 0e4baac0f14b0c4c7c32d70386d64307875fb6ab (diff) | |
parent | 86d7734efea1e7f345a9635f78bbf055116f8d84 (diff) |
Merge pull request #3 from stqism/master
Removed some useless code
Diffstat (limited to 'testing/toxic/chat.c')
-rw-r--r-- | testing/toxic/chat.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c index b835cf2d..19f5c972 100644 --- a/testing/toxic/chat.c +++ b/testing/toxic/chat.c | |||
@@ -107,19 +107,16 @@ static void chat_onKey(ToxWindow* self, int key) { | |||
107 | } | 107 | } |
108 | else if(key == '\n') { | 108 | else if(key == '\n') { |
109 | 109 | ||
110 | printf("Get times to int"); | ||
111 | int inthour = timeinfo->tm_hour; //Pretty bad, but it gets the job done | 110 | int inthour = timeinfo->tm_hour; //Pretty bad, but it gets the job done |
112 | int intmin = timeinfo->tm_min; | 111 | int intmin = timeinfo->tm_min; |
113 | char min[2]; | 112 | char min[2]; |
114 | char hour[2]; | 113 | char hour[2]; |
115 | printf("Turn to varible"); | ||
116 | sprintf(hour,"%d",inthour); | 114 | sprintf(hour,"%d",inthour); |
117 | if (intmin < 10) { | 115 | if (intmin < 10) { |
118 | sprintf(min,"0%d",intmin); | 116 | sprintf(min,"0%d",intmin); |
119 | } else { | 117 | } else { |
120 | sprintf(min,"%d",intmin); | 118 | sprintf(min,"%d",intmin); |
121 | } | 119 | } |
122 | printf("Display"); | ||
123 | wattron(ctx->history, COLOR_PAIR(2)); | 120 | wattron(ctx->history, COLOR_PAIR(2)); |
124 | wprintw(ctx->history,"%s",hour); | 121 | wprintw(ctx->history,"%s",hour); |
125 | wprintw(ctx->history,":%s ",min); | 122 | wprintw(ctx->history,":%s ",min); |