fix warnings (#203)

This commit is contained in:
Isaac0-dev 2022-10-01 13:02:55 +10:00 committed by GitHub
parent e4e9c02d51
commit 778667822c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -7,11 +7,13 @@ RUN apt-get update && \
build-essential \ build-essential \
libcapstone-dev \ libcapstone-dev \
pkgconf \ pkgconf \
python3 python3 \
libz-dev
RUN mkdir /sm64 RUN mkdir /sm64
WORKDIR /sm64 WORKDIR /sm64
ENV PATH="/sm64/tools:${PATH}" ENV PATH="/sm64/tools:${PATH}"
CMD echo 'usage: docker run --rm --mount type=bind,source="$(pwd)",destination=/sm64 sm64ex-coop make -j4 HEADLESS=1\n' \ # docker build -t sm64ex-coop .
'see https://github.com/n64decomp/sm64/blob/master/README.md for advanced usage' # docker run --rm --mount type=bind,source="$(pwd)",destination=/sm64 sm64ex-coop make -j HEADLESS=1
# see https://github.com/n64decomp/sm64/blob/master/README.md for advanced usage

View file

@ -53,7 +53,7 @@ void play_knockback_sound(struct MarioState *m) {
#endif #endif
s32 lava_boost_on_wall(struct MarioState *m) { s32 lava_boost_on_wall(struct MarioState *m) {
if (Cheats.enabled && Cheats.godMode) { return; } if (Cheats.enabled && Cheats.godMode) { return FALSE; }
m->faceAngle[1] = atan2s(m->wallNormal[2], m->wallNormal[0]); m->faceAngle[1] = atan2s(m->wallNormal[2], m->wallNormal[0]);
if (m->forwardVel < 24.0f) { if (m->forwardVel < 24.0f) {