MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / HackSwapIt

Function HackSwapIt

src/SB/Game/zScene.cpp:1261–1276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1259}
1260
1261static void HackSwapIt(char* buf, S32 size)
1262{
1263 // non-matching: r3 and r4 swapped
1264 char* end = size + buf;
1265 end--;
1266
1267 for (S32 i = 0; i < size / 2; i++)
1268 {
1269 char tmp = *buf;
1270 *buf = *end;
1271 *end = tmp;
1272
1273 buf++;
1274 end--;
1275 }
1276}
1277
1278void zSceneSwitch(_zPortal* p, S32 forceSameScene)
1279{

Callers 1

zSceneSwitchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected