Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C

Name: Anonymous 2025-03-09 1:02

https://netradiant.gitlab.io/post/2017-07-10-pk3dir-dpkdir/
would have done an if chain myself , to avoid a for loop for... 4...? 3 elements?


char pkgsomething = 'pk3';
char pkgsomething2 = 'dvksoaap';
char pkgsomething3 = 'pk77';

if (bla == pkgsomething) {
stuff;
s = 1;
} else if (!s && bla == pkgsomething2) {
stuff;
s = 1;
} else if (!s && bla == pkgsomething3) {
stuff;
s = 1;
}


#The original code was
#if (bla == pkgsomething) {
# stuff;
# s = 1;
#}


No I do not think you should "risk" a for loop for 3 unchanging elements.

Name: Anonymous 2025-03-09 9:41

Since almost all will be pk3 and some pk3dir
add a check around the other pack code block totally to check if we allready are a pak
this will almost always be true, thus skipping the seldom used code.
Only will be run when it's one of the new weird gay paks

if (!is_pak) {
//all that stuff past the first 2

}

Name: Anonymous 2025-03-12 21:12

if it ain't lisp its crap

Name: Anonymous 2025-03-18 13:10

>>11
RMS wrote the gnu C compiler, retard.
So try again fucking idiot fake.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List