diff options
| author | Simon <simon@hardwired.org.uk> | 2010-12-29 21:33:21 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2010-12-29 21:33:21 (GMT) |
| commit | b2129bd129b0c3f92a0e7652f37c58853142b020 (patch) | |
| tree | 846db65618ae3a4001b1384bca9497da911f4630 /src/interface.c | |
| parent | 3715925dd95c7433c4bfd3078089bcf05a16f813 (diff) | |
| download | powder-b2129bd129b0c3f92a0e7652f37c58853142b020.zip powder-b2129bd129b0c3f92a0e7652f37c58853142b020.tar.gz | |
Fix a bit of code readability
Diffstat (limited to 'src/interface.c')
| -rw-r--r-- | src/interface.c | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/interface.c b/src/interface.c index fef6445..b37c3e9 100644 --- a/src/interface.c +++ b/src/interface.c @@ -1853,20 +1853,36 @@ void set_cmode(int cm) strcpy(itc_msg, "Persistent Display"); } else if(cmode==CM_PRESS) + { strcpy(itc_msg, "Pressure Display"); + } else if(cmode==CM_NOTHING) + { strcpy(itc_msg, "Nothing Display"); + } else if(cmode==CM_CRACK) + { strcpy(itc_msg, "Alternate Velocity Display"); + } else if(cmode==CM_GRAD) + { strcpy(itc_msg, "Heat Gradient Display"); + } else if(cmode==CM_LIFE) - if(DEBUG_MODE) - strcpy(itc_msg, "Life Display"); - else - set_cmode(CM_CRACK); + { + if(DEBUG_MODE) + { + strcpy(itc_msg, "Life Display"); + } + else + { + set_cmode(CM_CRACK); + } + } else + { strcpy(itc_msg, "Velocity Display"); + } } char *download_ui(pixel *vid_buf, char *uri, int *len) |
