Skip to content

Fix/gameplay - #141

Merged
ErwanTheKing merged 12 commits into
mainfrom
fix/gameplay
May 29, 2026
Merged

Fix/gameplay#141
ErwanTheKing merged 12 commits into
mainfrom
fix/gameplay

Refactor memory management and cleanup functions

02aa177
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed May 29, 2026 in 17s

Quality Gate failed

Annotations

Check warning on line 95 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declaration shadows a global variable "map" in the outer scope.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swyG&open=AZ5zvS5Eb98999p0swyG&pullRequest=141

Check warning on line 90 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declare the variable "y" inside the loop.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swyE&open=AZ5zvS5Eb98999p0swyE&pullRequest=141

Check warning on line 18 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make the type of this parameter a pointer-to-const. The current type of "node" is "struct bsp_s *".

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swx9&open=AZ5zvS5Eb98999p0swx9&pullRequest=141

Check failure on line 92 in src/settings/controller_controls.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

cast from 'const char *' to 'char *' drops const qualifier

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS8Bb98999p0swyN&open=AZ5zvS8Bb98999p0swyN&pullRequest=141

Check failure on line 91 in src/settings/controller_controls.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

cast from 'const char *' to 'char *' drops const qualifier

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS8Bb98999p0swyM&open=AZ5zvS8Bb98999p0swyM&pullRequest=141

Check warning on line 13 in src/render/draw_crosshair.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this redundant cast.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS7ob98999p0swyK&open=AZ5zvS7ob98999p0swyK&pullRequest=141

Check warning on line 66 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make the type of this parameter a pointer-to-const. The current type of "node" is "struct bsp_s *".

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swyB&open=AZ5zvS5Eb98999p0swyB&pullRequest=141

Check warning on line 33 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declare the variable "y" inside the loop.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swx7&open=AZ5zvS5Eb98999p0swx7&pullRequest=141

Check warning on line 86 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declaration shadows a global variable "map" in the outer scope.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swyF&open=AZ5zvS5Eb98999p0swyF&pullRequest=141

Check warning on line 34 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declare the variable "x" inside the loop.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swx8&open=AZ5zvS5Eb98999p0swx8&pullRequest=141

Check warning on line 14 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declare the variable "y" inside the loop.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swx4&open=AZ5zvS5Eb98999p0swx4&pullRequest=141

Check warning on line 95 in src/init/free_cleanup.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declare the variable "curr" inside the loop.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Ob98999p0swyH&open=AZ5zvS5Ob98999p0swyH&pullRequest=141

Check warning on line 39 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make the type of this parameter a pointer-to-const. The current type of "node" is "struct bsp_s *".

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swx_&open=AZ5zvS5Eb98999p0swx_&pullRequest=141

Check warning on line 10 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make the type of this parameter a pointer-to-const. The current type of "node" is "struct bsp_s *".

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swx5&open=AZ5zvS5Eb98999p0swx5&pullRequest=141

Check warning on line 14 in src/render/draw_crosshair.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this redundant cast.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS7ob98999p0swyL&open=AZ5zvS7ob98999p0swyL&pullRequest=141

Check failure on line 93 in src/settings/controller_controls.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

cast from 'const char *' to 'char *' drops const qualifier

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS8Bb98999p0swyO&open=AZ5zvS8Bb98999p0swyO&pullRequest=141

Check warning on line 42 in src/settings/controller_controls.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make the type of this parameter a pointer-to-const. The current type of "wolf" is "struct wolf_s *".

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS8Bb98999p0swyP&open=AZ5zvS8Bb98999p0swyP&pullRequest=141

Check warning on line 21 in src/settings/settings_rebind.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make the type of this parameter a pointer-to-const. The current type of "text" is "struct text_s *".

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS8Hb98999p0swyR&open=AZ5zvS8Hb98999p0swyR&pullRequest=141

Check warning on line 49 in src/player/joystick.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make the type of this parameter a pointer-to-const. The current type of "settings" is "struct settings_game_s *".

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS7Mb98999p0swyI&open=AZ5zvS7Mb98999p0swyI&pullRequest=141

Check warning on line 10 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declaration shadows a global variable "map" in the outer scope.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swx6&open=AZ5zvS5Eb98999p0swx6&pullRequest=141

Check warning on line 58 in src/player/joystick.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make the type of this parameter a pointer-to-const. The current type of "settings" is "struct settings_game_s *".

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS7Mb98999p0swyJ&open=AZ5zvS7Mb98999p0swyJ&pullRequest=141

Check warning on line 39 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declaration shadows a global variable "map" in the outer scope.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swyA&open=AZ5zvS5Eb98999p0swyA&pullRequest=141

Check warning on line 21 in src/settings/settings_rebind.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make the type of this parameter a pointer-to-const. The current type of "wolf" is "struct wolf_s *".

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS8Hb98999p0swyQ&open=AZ5zvS8Hb98999p0swyQ&pullRequest=141

Check warning on line 66 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declaration shadows a global variable "map" in the outer scope.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swyC&open=AZ5zvS5Eb98999p0swyC&pullRequest=141

Check warning on line 18 in src/stage/bsp_room_shapes.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declaration shadows a global variable "map" in the outer scope.

See more on https://sonarcloud.io/project/issues?id=OpenCz_Wolf3d&issues=AZ5zvS5Eb98999p0swx-&open=AZ5zvS5Eb98999p0swx-&pullRequest=141