aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiehl2004-03-14 17:53:19 +0000
committerOliver Kiehl2004-03-14 17:53:19 +0000
commit0d3b89b88f7b969087549a68a79ffdfa769238e2 (patch)
treec84aa5f2e02f83153d27113b32a425e1306f81ef
parent9c647b4dbe7c377831007c464bda238ed5815fa0 (diff)
downloadscummvm-rg350-0d3b89b88f7b969087549a68a79ffdfa769238e2.tar.gz
scummvm-rg350-0d3b89b88f7b969087549a68a79ffdfa769238e2.tar.bz2
scummvm-rg350-0d3b89b88f7b969087549a68a79ffdfa769238e2.zip
remove ugly goto
svn-id: r13278
-rw-r--r--simon/vga.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/simon/vga.cpp b/simon/vga.cpp
index b1a1bece94..eedc2cc341 100644
--- a/simon/vga.cpp
+++ b/simon/vga.cpp
@@ -397,12 +397,10 @@ byte *vc_10_depack_column(VC10_state * vs) {
byte dh = vs->dh;
byte color;
- if (a != -0x80)
- goto start_here;
+ if (a == -0x80)
+ a = *src++;
for (;;) {
- a = *src++;
- start_here:;
if (a >= 0) {
color = *src++;
do {
@@ -425,6 +423,7 @@ byte *vc_10_depack_column(VC10_state * vs) {
}
} while (++a != 0);
}
+ a = *src++;
}
get_out:;