diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/interface.c | 8 | ||||
| -rw-r--r-- | src/main.c | 17 |
2 files changed, 12 insertions, 13 deletions
diff --git a/src/interface.c b/src/interface.c index 31d885a..8b9a916 100644 --- a/src/interface.c +++ b/src/interface.c @@ -872,7 +872,7 @@ void login_ui(pixel *vid_buf) if (!s_id) goto fail; *(s_id++) = 0; - + u_e = strchr(s_id, ' '); if (!u_e){ u_e = malloc(1); @@ -884,9 +884,9 @@ void login_ui(pixel *vid_buf) strcpy(svf_user_id, res+3); strcpy(svf_session_id, s_id); nres = mystrdup(u_e); - + printf("\n{%s} {%s} {%s}\n", svf_user_id, svf_session_id, nres); - + if (!strncmp(nres, "ADMIN", 5)) { svf_admin = 1; @@ -3862,7 +3862,7 @@ char *console_ui(pixel *vid_buf,char error[255]) { //TODO: error messages, show mx /= sdl_scale; my /= sdl_scale; ed.focus = 1; - + clearrect(vid_buf, 0, 0, XRES+BARSIZE, 220);//anyway to make it transparent? draw_line(vid_buf, 1, 219, XRES, 219, 228, 228, 228, XRES+BARSIZE); drawtext(vid_buf, 100, 15, "Welcome to The Powder Toy console v.2 (by cracker64)\n" @@ -2626,15 +2626,14 @@ int main(int argc, char *argv[]) return 0; } int process_command(pixel *vid_buf,char *console,char *console_error) { - -int x,y,nx,ny,i,j,k,m; -int do_next = 1; -char xcoord[10]; -char ycoord[10]; -char console2[15]; -char console3[15]; -char console4[15]; -char console5[15]; + int y,x,nx,ny,i,j,k,m; + int do_next = 1; + char xcoord[10]; + char ycoord[10]; + char console2[15]; + char console3[15]; + char console4[15]; + char console5[15]; //sprintf(console_error, "%s", console); if(console && strcmp(console, "")!=0 && strncmp(console, " ", 1)!=0) { |
