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-05-16 21:29:58 +0200
commitbcaef11abb48f6ac33671dd26f7e42073ca16f8e (patch)
tree706bf464a8cc0f49303389484e1f5f166d12f568 /src
parent7b4d01113542ba155b5aa8cad1795ee867e36435 (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.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 38ab767..76c8a24 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)
- // BUT Dead homunculus is not active (send RESTING instead)
- if (!sd->hd->homunculus.vaporize && !homun_alive(sd->hd))
- script_pushint(st,1);
- else
- script_pushint(st,sd->hd->homunculus.vaporize);
- return true;
+ // 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);
+ else
+ script_pushint(st,sd->hd->homunculus.vaporize);
+ return true;
}