Created attachment 3337[details]
Make MASM SnapVector the same as the inline version
When running a 64 bit MSVC build on Windows 7, the game segfaults after map load. This is caused by qsnapvectorsse in snapvector.asm (which is only used by MSVC, the makefile uses the inline .c files).
More specifically, there seems to be a leftover opcode at the start.
I don't know much about assembler, but it's the only difference between the snapvector.asm and snapvector.c versions, and the game builds and runs fine with the change.
Created attachment 3337 [details] Make MASM SnapVector the same as the inline version When running a 64 bit MSVC build on Windows 7, the game segfaults after map load. This is caused by qsnapvectorsse in snapvector.asm (which is only used by MSVC, the makefile uses the inline .c files). More specifically, there seems to be a leftover opcode at the start. I don't know much about assembler, but it's the only difference between the snapvector.asm and snapvector.c versions, and the game builds and runs fine with the change.