turn some comparsions for a better readability

Origin commit data
------------------
Commit: bee4cb4959
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-03-25 (Mon, 25 Mar 2024)

Origin message was:
------------------
- turn some comparsions for a better readability

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2024-03-25 20:29:55 +01:00
committed by Thilo Graf
parent f7f1f4d6e6
commit 14240c3c4a
15 changed files with 89 additions and 98 deletions

View File

@@ -188,7 +188,7 @@ void tuxtxt_decode_btt()
int i, current, b1, b2, b3, b4;
unsigned char btt[23*40] = {0};
if (tuxtxt_cache.subpagetable[0x1f0] == 0xff || 0 == tuxtxt_cache.astCachetable[0x1f0][tuxtxt_cache.subpagetable[0x1f0]]) /* not yet received */
if (tuxtxt_cache.subpagetable[0x1f0] == 0xff || tuxtxt_cache.astCachetable[0x1f0][tuxtxt_cache.subpagetable[0x1f0]] == 0) /* not yet received */
return;
tuxtxt_decompress_page(0x1f0,tuxtxt_cache.subpagetable[0x1f0],btt);
if (btt[799] == ' ') /* not completely received or error */
@@ -255,7 +255,7 @@ void tuxtxt_decode_adip() /* additional information table */
for (i = 0; i <= tuxtxt_cache.maxadippg; i++)
{
p = tuxtxt_cache.adippg[i];
if (!p || tuxtxt_cache.subpagetable[p] == 0xff || 0 == tuxtxt_cache.astCachetable[p][tuxtxt_cache.subpagetable[p]]) /* not cached (avoid segfault) */
if (!p || tuxtxt_cache.subpagetable[p] == 0xff || tuxtxt_cache.astCachetable[p][tuxtxt_cache.subpagetable[p]] == 0) /* not cached (avoid segfault) */
continue;
tuxtxt_decompress_page(p,tuxtxt_cache.subpagetable[p],padip);
@@ -530,7 +530,7 @@ void tuxtxt_clear_p26(tstExtData* extData)
for(int i = 0; i < 16; ++i)
{
if(0 != extData->p26[i])
if(extData->p26[i] != 0)
{
memset(extData->p26[i], 0x00, 13 * 3);
}
@@ -858,7 +858,7 @@ void *tuxtxt_CacheThread(void * /*arg*/)
do
{
for (;
l >= 2 && 0 == tuxtxt_cache.flofpages[tuxtxt_cache.current_page[magazine]][l];
l >= 2 && tuxtxt_cache.flofpages[tuxtxt_cache.current_page[magazine]][l] == 0;
l--)
; /* find used linkindex */
for (;