summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2025-02-12 00:55:03 +0100
committerFedja Beader <fedja@protonmail.ch>2025-02-12 00:55:03 +0100
commitf6ea0300feafebaf0dcccbeee348e2e16f99dd28 (patch)
tree80badc03669908962a53ce0ab27f68be46a7f67a /src
parentb86071ad388553171aa22558baffdf5adc9df02b (diff)
downloadevol-hercules-fix_misleading_indentation.tar.gz
evol-hercules-fix_misleading_indentation.tar.bz2
evol-hercules-fix_misleading_indentation.tar.xz
evol-hercules-fix_misleading_indentation.zip
Fix "warning: this 'else' clause does not guard... [-Wmisleading-indentation]"fix_misleading_indentation
2/3 of this file use tabs for indentation, the rest uses mostly tabs. So let's just reindent this whole function with spaces.
Diffstat (limited to 'src')
-rw-r--r--src/emap/script_buildins.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 9acbf7c..21045e9 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -2982,17 +2982,17 @@ BUILDIN(recallhomunculus)
*------------------------------------------*/
BUILDIN(homstatus)
{
- struct map_session_data *sd = script->rid2sd(st);
- if (sd == NULL || sd->hd == NULL)
- return true;
+ struct map_session_data *sd = script->rid2sd(st);
+ if (sd == NULL || sd->hd == NULL)
+ return true;
- // Return the status (0 - active; 1 - resting ; 2 - mission)
+ // Return the status (0 - active; 1 - resting ; 2 - mission)
// BUT Dead homunculus is not active (send RESTING instead)
- if (!sd->hd->homunculus.vaporize && !homun_alive(sd->hd))
- script_pushint(st,1);
+ if (!sd->hd->homunculus.vaporize && !homun_alive(sd->hd))
+ script_pushint(st,1);
else
- script_pushint(st,sd->hd->homunculus.vaporize);
- return true;
+ script_pushint(st,sd->hd->homunculus.vaporize);
+ return true;
}