diff options
author | Willem Jan Palenstijn | 2011-06-16 16:43:48 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-06-16 16:43:48 +0200 |
commit | ae67a9a958e26a237ddb7910f6c4a1b6b088dc77 (patch) | |
tree | 6141a87a2d78901a61a5e5ad98aac390307ca40f /engines | |
parent | 2c76a4af40fdafecd5191c55b3d54b204022c13b (diff) | |
download | scummvm-rg350-ae67a9a958e26a237ddb7910f6c4a1b6b088dc77.tar.gz scummvm-rg350-ae67a9a958e26a237ddb7910f6c4a1b6b088dc77.tar.bz2 scummvm-rg350-ae67a9a958e26a237ddb7910f6c4a1b6b088dc77.zip |
DREAMWEB: Re-optimize unbounded code blocks
This gets rid of some unused labels. We need to be careful
not be optimize too much, as that could remove the very label
the unbounded block was added for.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 1d079d9571..7ad10a2e42 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -3984,11 +3984,8 @@ atlast2: context.ds.byte(context.di+17) = context.al; context._cmp(context.cl, 5); if (!context.flags.z()) - goto notnearly; + return /* (notnearly) */; context.data.byte(kThroughdoor) = 0; -notnearly: - return; - return; } void updatepeople(Context &context) { @@ -7343,12 +7340,6 @@ iswatching: justgetback: context.data.byte(kInvopen) = 0; context.data.byte(kOpenedob) = 255; - return; -examlist: -invlist1: -openchangesize: -withlist1: - return; } void setpickup(Context &context) { @@ -13731,7 +13722,6 @@ axeondoor: context.data.byte(kWatchspeed) = 1; context.data.byte(kSpeedcount) = 1; context.data.byte(kGetback) = 1; - return; } void useelvdoor(Context &context) { |