diff --git a/build/CSE2 v1.0.0.0.zip b/build/CSE2 v1.0.0.0.zip new file mode 100644 index 00000000..8dc686c6 Binary files /dev/null and b/build/CSE2 v1.0.0.0.zip differ diff --git a/src/MycParam.cpp b/src/MycParam.cpp index 7311fc83..7c3bc790 100644 --- a/src/MycParam.cpp +++ b/src/MycParam.cpp @@ -412,10 +412,10 @@ bool SaveTimeCounter() for (int i = 0; i < 4; i++) { uint8_t *p = (uint8_t*)&rec.counter[i]; - p[0] -= (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? (rec.random[i]) : (rec.random[i] >> 1); - p[1] -= rec.random[i]; - p[2] -= rec.random[i]; - p[3] -= (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? (rec.random[i] >> 1) : (rec.random[i]); + p[0] -= (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? (rec.random[0]) : (rec.random[0] >> 1); + p[1] -= rec.random[0]; + p[2] -= rec.random[0]; + p[3] -= (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? (rec.random[0] >> 1) : (rec.random[0]); } //If this is faster than our new time, quit @@ -430,10 +430,10 @@ bool SaveTimeCounter() rec.random[i] = Random(0, 250) + i; uint8_t *p = (uint8_t*)&rec.counter[i]; - p[0] -= (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? (rec.random[i]) : (rec.random[i] >> 1); - p[1] -= rec.random[i]; - p[2] -= rec.random[i]; - p[3] -= (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? (rec.random[i] >> 1) : (rec.random[i]); + p[0] += (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? (rec.random[i]) : (rec.random[i] >> 1); + p[1] += rec.random[i]; + p[2] += rec.random[i]; + p[3] += (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? (rec.random[i] >> 1) : (rec.random[i]); } fp = SDL_RWFromFile(path, "wb");