diff options
author | Max Horn | 2003-09-21 18:25:34 +0000 |
---|---|---|
committer | Max Horn | 2003-09-21 18:25:34 +0000 |
commit | 58721a629d98335f549485e44072472fe6a78e96 (patch) | |
tree | c3ca4da231083067176c6021560ff520058f1fa5 /sword2 | |
parent | 9abd9bb6b55b8843d46e8bd718b607d5fc58506c (diff) | |
download | scummvm-rg350-58721a629d98335f549485e44072472fe6a78e96.tar.gz scummvm-rg350-58721a629d98335f549485e44072472fe6a78e96.tar.bz2 scummvm-rg350-58721a629d98335f549485e44072472fe6a78e96.zip |
No need to do endian conversion if you check for 0, as BE 0 == LE 0
svn-id: r10359
Diffstat (limited to 'sword2')
-rw-r--r-- | sword2/driver/render.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sword2/driver/render.cpp b/sword2/driver/render.cpp index ffa583f664..9db66a36b1 100644 --- a/sword2/driver/render.cpp +++ b/sword2/driver/render.cpp @@ -1126,7 +1126,7 @@ int32 InitialiseBackgroundLayer(_parallax *p) { memset(memchunk, 0, p->w * p->h); for (i = 0; i < p->h; i++) { - if (FROM_LE_32(p->offset[i]) == 0) + if (p->offset[i] == 0) continue; line = (_parallaxLine *) ((uint8 *) p + FROM_LE_32(p->offset[i])); |