Skip to content

Conversation

asmanel
Copy link

@asmanel asmanel commented Apr 13, 2016

pCube maps glitch fix

} \
} \
if(headr.version>=6 && headr.version<8) { \
if(strncmp(headr.head,"CUBE",4)==1 && (headr.version>=6 && headr.version<8)) { \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comparing the result of strncmp to 1 is unreliable.

@theonlypwner
Copy link
Member

theonlypwner commented Apr 14, 2016

I have added a link to the pCube project in the first post.

You mentioned that pCube maps have a version number of 6 and "CUBE" magic bytes and old AC v6 maps have "ACMP" magic.

If that's the cause, replacing 6 with 7 in the first and last changed lines should fix the problem.

@theonlypwner theonlypwner force-pushed the master branch 9 times, most recently from fbaff05 to 06cc372 Compare December 5, 2020 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants