mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 10:49:53 +02:00
Fix a bit of code readability
This commit is contained in:
@@ -1853,21 +1853,37 @@ void set_cmode(int cm)
|
|||||||
strcpy(itc_msg, "Persistent Display");
|
strcpy(itc_msg, "Persistent Display");
|
||||||
}
|
}
|
||||||
else if(cmode==CM_PRESS)
|
else if(cmode==CM_PRESS)
|
||||||
|
{
|
||||||
strcpy(itc_msg, "Pressure Display");
|
strcpy(itc_msg, "Pressure Display");
|
||||||
|
}
|
||||||
else if(cmode==CM_NOTHING)
|
else if(cmode==CM_NOTHING)
|
||||||
|
{
|
||||||
strcpy(itc_msg, "Nothing Display");
|
strcpy(itc_msg, "Nothing Display");
|
||||||
|
}
|
||||||
else if(cmode==CM_CRACK)
|
else if(cmode==CM_CRACK)
|
||||||
|
{
|
||||||
strcpy(itc_msg, "Alternate Velocity Display");
|
strcpy(itc_msg, "Alternate Velocity Display");
|
||||||
|
}
|
||||||
else if(cmode==CM_GRAD)
|
else if(cmode==CM_GRAD)
|
||||||
|
{
|
||||||
strcpy(itc_msg, "Heat Gradient Display");
|
strcpy(itc_msg, "Heat Gradient Display");
|
||||||
|
}
|
||||||
else if(cmode==CM_LIFE)
|
else if(cmode==CM_LIFE)
|
||||||
|
{
|
||||||
if(DEBUG_MODE)
|
if(DEBUG_MODE)
|
||||||
|
{
|
||||||
strcpy(itc_msg, "Life Display");
|
strcpy(itc_msg, "Life Display");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
set_cmode(CM_CRACK);
|
set_cmode(CM_CRACK);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
strcpy(itc_msg, "Velocity Display");
|
strcpy(itc_msg, "Velocity Display");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
char *download_ui(pixel *vid_buf, char *uri, int *len)
|
char *download_ui(pixel *vid_buf, char *uri, int *len)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user