diff options
| author | jacksonmj <jacksonmj@jacksonmj.none> | 2011-02-13 00:05:09 (GMT) |
|---|---|---|
| committer | jacksonmj <jacksonmj@jacksonmj.none> | 2011-02-13 00:30:54 (GMT) |
| commit | d57c5ef5e0bbbc21a8f4e9f5bd9281348b0be11f (patch) | |
| tree | 7f9f7524855bb9d9e6dc99009692f5279410b96e /src/interface.c | |
| parent | 457ceeff0a2b546484137d64872c04fed187b9c2 (diff) | |
| download | powder-d57c5ef5e0bbbc21a8f4e9f5bd9281348b0be11f.zip powder-d57c5ef5e0bbbc21a8f4e9f5bd9281348b0be11f.tar.gz | |
Visual Studio compatibility
Also fix two compiler warnings
Diffstat (limited to 'src/interface.c')
| -rw-r--r-- | src/interface.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interface.c b/src/interface.c index 32c83a1..d3057d8 100644 --- a/src/interface.c +++ b/src/interface.c @@ -3841,7 +3841,7 @@ struct command_history { typedef struct command_history command_history; command_history *last_command = NULL; char *console_ui(pixel *vid_buf,char error[255]) { //TODO: error messages, show previous commands - int mx,my,b,bq,cc,ci = -1; + int mx,my,b,cc,ci = -1; command_history *currentcommand; ui_edit ed; ed.x = 15; @@ -3857,7 +3857,6 @@ char *console_ui(pixel *vid_buf,char error[255]) { //TODO: error messages, show //fillrect(vid_buf, -1, -1, XRES, 220, 0, 0, 0, 190); while (!sdl_poll()) { - bq = b; b = SDL_GetMouseState(&mx, &my); mx /= sdl_scale; my /= sdl_scale; @@ -3994,9 +3993,9 @@ int console_parse_coords(char *txt, int *x, int *y, char *err) } int console_parse_partref(char *txt, int *which, char *err) { + int i = -1, nx, ny; strcpy(err,""); // TODO: use regex? - int i = -1, nx, ny; if (strchr(txt,',') && console_parse_coords(txt, &nx, &ny, err)) { i = pmap[ny][nx]; |
