diff options
author | YamaArashi <shadow962@live.com> | 2017-01-02 03:25:55 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2017-01-02 03:25:55 -0800 |
commit | 371fc31138678ca4a5aa27449b931c70332e3dfa (patch) | |
tree | 77bfd91438238c3999a9265b4f50d0097a17eb92 | |
parent | 10aea2512150731570c997ad11b4c3144f51ef8b (diff) |
simplify conditional
-rw-r--r-- | src/text.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/text.c b/src/text.c index a3e07594e..6089fdba8 100644 --- a/src/text.c +++ b/src/text.c @@ -2907,9 +2907,7 @@ static bool8 PlayerCanInterruptWait(struct Window *win) retVal = FALSE; break; case 3: - retVal = FALSE; - if (!gIsLinkContest) - retVal = TRUE; + retVal = gIsLinkContest ? FALSE : TRUE; break; case 1: retVal = (gBattleTypeFlags & BATTLE_TYPE_LINK) ? FALSE : TRUE; |