Re:Source code for Quake 2 rerelease
by augustk on Friday August 11, 2023 @05:52AM
(#37086869)
> if !e->inuse but e == ent->client->chase_target, the original will loop but yours will exit.
No, the continue statement will jump to the test part also for `do' loops:
"The continue statement is related to break, but less often used; it causes
the next iteration of the enclosing for, while, or do loop to begin. In the
while and do, this means that the test part is executed immediately"
Re:Source code for Quake 2 rerelease
by _flux on Friday August 11, 2023 @09:45AM
(#37088618)
Well today I have learned something I may have forgotten, thank you :). It seems natural in for and while so it does make sense also the do loops use it.
No, the continue statement will jump to the test part also for `do' loops:
"The continue statement is related to break, but less often used; it causes the next iteration of the enclosing for, while, or do loop to begin. In the while and do, this means that the test part is executed immediately"
-- "The C programming language (Second Edition)"