]> skyeroc.xyz Git - dgamelaunch/commitdiff
Minor code improvement
authorPasi Kallinen <paxed@alt.org>
Sat, 25 May 2013 09:01:25 +0000 (12:01 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 25 May 2013 09:01:25 +0000 (12:01 +0300)
virus.c

diff --git a/virus.c b/virus.c
index 0d81d4b3dffba57912ae387eb35558a31d82f9fe..727d894fee37e8fe9656e9ac3f569a6eb2ae79ce 100644 (file)
--- a/virus.c
+++ b/virus.c
@@ -1393,9 +1393,7 @@ key_cmd_mode:
       break;
     case 'b':                  // b- back a word
     case 'e':                  // e- end of word
-      dir = FORWARD;
-      if (c == 'b')
-        dir = BACK;
+      dir = (c == 'b') ? BACK : FORWARD;
       do {
          if ((dot + dir) < text || (dot + dir) > end - 1)
              break;