Commit graph

230 commits

Author SHA1 Message Date
Peter0x44
70bec7322b NX: Fix -Wmisleading-indentation warning
/__w/quakespasm/quakespasm/source/gl_rpart.c: In function 'QMB_InitParticles':
/__w/quakespasm/quakespasm/source/gl_rpart.c:509:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  509 |         for (i = 0 ; i < 5 ; i++)
      |         ^~~
/__w/quakespasm/quakespasm/source/gl_rpart.c:219:1: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  219 | do {                                                                                                                                    \
      | ^~
2024-06-17 18:27:36 +01:00
Peter0x44
f47080d347 VITA/NX: Fix a -Wmisleading-identation warning
source/view.c:1174:1: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
 1174 | else
      | ^~~~
source/view.c:1181:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
 1181 |  view2->origin[0] = view->origin[0];
      |  ^~~~~
2024-06-17 18:20:26 +01:00
Peter0x44
8ada86168c VITA: Fix -Wuninititalized warning
The Vita doesn't use FSAA so it is safe to set this to zero.

source/gl_vidsdl.c: In function 'VID_SetMode':
source/gl_vidsdl.c:823:2: warning: 'fsaa_obtained' is used uninitialized in this function [-Wuninitialized]
  823 |  Con_SafePrintf ("Video mode %dx%dx%d %dHz (%d-bit z-buffer, %dx FSAA) initialized\n",
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  824 |     VID_GetCurrentWidth(),
      |     ~~~~~~~~~~~~~~~~~~~~~~
  825 |     VID_GetCurrentHeight(),
      |     ~~~~~~~~~~~~~~~~~~~~~~~
  826 |     VID_GetCurrentBPP(),
      |     ~~~~~~~~~~~~~~~~~~~~
  827 |     VID_GetCurrentRefreshRate(),
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  828 |     depthbits,
      |     ~~~~~~~~~~
  829 |     fsaa_obtained);
      |     ~~~~~~~~~~~~~~
2024-06-17 18:08:35 +01:00
Peter0x44
6a256fe327 VITA: Fix "conflicting types for LoadAchievements" warning
source/menu.c: At top level:
source/menu.c:1300:6: warning: conflicting types for 'Load_Achivements'
 1300 | void Load_Achivements (void)
      |      ^~~~~~~~~~~~~~~~
source/menu.c:604:2: note: previous implicit declaration of 'Load_Achivements' was here
  604 |  Load_Achivements();
      |  ^~~~~~~~~~~~~~~~
2024-06-17 17:18:31 +01:00
Peter0x44
b425d04291 VITA: Fix -Wpointer-sign warning
source/net_udp.c: In function 'UDP_Init':
source/net_udp.c:102:25: warning: pointer targets in passing argument 2 of 'Cvar_Set' differ in signedness [-Wpointer-sign]
  102 |   Cvar_Set ("hostname", nick);
      |                         ^~~~
      |                         |
      |                         SceChar8 * {aka signed char *}
In file included from source/quakedef.h:282,
                 from source/net_udp.c:26:
source/cvar.h:98:50: note: expected 'const char *' but argument is of type 'SceChar8 *' {aka 'signed char *'}
   98 | void Cvar_Set (const char *var_name, const char *value);
      |                                      ~~~~~~~~~~~~^~~~~
2024-06-17 17:18:31 +01:00
Peter0x44
b709396d40 VITA: Fix -Wpointer-sign warning
source/net_udp.c:101:64: warning: pointer targets in passing argument 2 of 'sceAppUtilSystemParamGetString' differ in signedness [-Wpointer-sign]
  101 |   sceAppUtilSystemParamGetString(SCE_SYSTEM_PARAM_ID_USERNAME, nick, SCE_SYSTEM_PARAM_USERNAME_MAXSIZE);
      |                                                                ^~~~
      |                                                                |
      |                                                                char *
In file included from /usr/local/vitasdk/arm-vita-eabi/include/psp2/appmgr.h:12,
                 from /usr/local/vitasdk/arm-vita-eabi/include/vitasdk.h:8,
                 from source/net_udp.c:30:
/usr/local/vitasdk/arm-vita-eabi/include/psp2/apputil.h:244:12: note: expected 'SceChar8 *' {aka 'signed char *'} but argument is of type 'char *'
  244 |  SceChar8 *buf, SceSize bufSize);
2024-06-17 17:18:31 +01:00
Peter0x44
fa99d2b563 VITA/NX: Fix -Wincompatible-pointer-types warning
COM_LoadStackFile already returns a "byte*" so this cast is totally
unneeded. I'm not sure why it was there to begin with

source/gl_model.c: In function 'Mod_LoadModel':
source/gl_model.c:337:7: warning: assignment to 'byte *' {aka 'unsigned char *'} from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types]
  337 |   buf = (unsigned*)COM_LoadStackFile ("models/missing_model.mdl", stackbuf, sizeof(stackbuf), NULL);
      |       ^
2024-06-17 17:18:31 +01:00
Peter0x44
a40c8e34d4 VITA: Fix -Wimplicit-function-declaration warning
GCC 14 promotes this to an error.

source/gl_hud.c:1697:2: warning: implicit declaration of function 'Save_Achivements' [-Wimplicit-function-declaration]
 1697 |  Save_Achivements();
      |  ^~~~~~~~~~~~~~~~
2024-06-17 17:18:31 +01:00
Peter0x44
251c34708c VITA: Fix -Wmisleading-identation warning
source/gl_hud.c: In function 'HUD_Parse_Achievement':
source/gl_hud.c:1689:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 1689 |     if (achievement_list[ach].unlocked)
      |     ^~
source/gl_hud.c:1692:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 1692 |  achievement_unlocked = 1;
      |  ^~~~~~~~~~~~~~~~~~~~
2024-06-17 17:18:31 +01:00
Peter0x44
c850e72b53 VITA/NX: Fix -Wformat-extra-args warnings
source/gl_screen.c:375:17: warning: too many arguments for format [-Wformat-extra-args]
  375 |    strcpy(s, va("Hold %s to buy %s\n", GetUseButtonL(), GetPerkName(weapon), cost));
      |                 ^~~~~~~~~~~~~~~~~~~~~
source/gl_screen.c:385:17: warning: too many arguments for format [-Wformat-extra-args]
  385 |    strcpy(s, va("Hold %s to Activate the Trap\n", GetUseButtonL(), cost));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/gl_screen.c:390:17: warning: too many arguments for format [-Wformat-extra-args]
  390 |    strcpy(s, va("Hold %s to Pack-a-Punch\n", GetUseButtonL(), cost));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
source/gl_screen.c:405:17: warning: too many arguments for format [-Wformat-extra-args]
  405 |    strcpy(s, va("Hold %s to use Teleporter\n", GetUseButtonL(), cost));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/gl_screen.c:430:17: warning: too many arguments for format [-Wformat-extra-args]
  430 |    strcpy(s, va("Hold %s to End the Game\n", GetUseButtonL(), cost));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-06-17 17:18:31 +01:00
Peter0x44
befc85915d VITA/NX: Fix implicit function declaration warning
GCC 14 makes this an error.

source/gl_rmisc.c: In function 'R_Init':
source/gl_rmisc.c:256:2: warning: implicit declaration of function 'R_InitOtherTextures'; did you mean 'R_InitTextures'? [-Wimplicit-function-declaration]
  256 |  R_InitOtherTextures ();
      |  ^~~~~~~~~~~~~~~~~~~
      |  R_InitTextures
source/gl_rmisc.c: At top level:
source/gl_rmisc.c:671:6: warning: conflicting types for 'R_InitOtherTextures'
  671 | void R_InitOtherTextures (void)
      |      ^~~~~~~~~~~~~~~~~~~
source/gl_rmisc.c:256:2: note: previous implicit declaration of 'R_InitOtherTextures' was here
  256 |  R_InitOtherTextures ();
      |  ^~~~~~~~~~~~~~~~~~~
2024-06-17 17:18:31 +01:00
cypress
d1200a3956 VITA/NX: Consistent AI size for builtin and pathing 2024-06-16 21:21:06 -07:00
cypress
c59ac1ae96 VITA/NX: Remove legacy sprint toggle hack 2024-05-18 14:29:34 -07:00
cypress
ce20fd0893
NX/VITA: Remove Maximum SDL compatibility version 2024-05-06 18:14:22 -07:00
cypress
3f55696e09
NX/VITA: Replace standard EF_ROTATE with one that mimicks Power-Up behavior 2024-04-07 20:09:12 -07:00
cypress
637bc87005
VITA/NX: Force Update 2024-03-16 19:52:27 -07:00
cypress
736380b098
NX/VITA: Fix nzp_screenflash build error 2024-01-22 23:13:19 -05:00
cypress
f2c392f235
NX/VITA: Prevent Sniper Sway with Deadshot Daiquiri 2024-01-22 23:06:54 -05:00
cypress
c34deca69f
NX/VITA: Fix SCREENFLASH_FADE_INANDOUT updating too slow 2024-01-14 21:21:38 -05:00
MotoLegacy
24c89e197a NX/VITA: Add nzp_screenflash builtin 2024-01-14 20:43:33 -05:00
MotoLegacy
1b622cf24f NX/VITA: Bump intensity of idle viewmodel bobbing 2024-01-13 15:34:25 -05:00
cypress
d93ecf2b1d
NX/VITA: Idle View Model Bobbing Integration from CSQC 2024-01-13 14:55:23 -05:00
cypress
b5150a81e6 NX/VITA: Add support for loading NZ:P Beta Waypoints 2024-01-07 18:01:12 -05:00
cypress
73781d4e13 NX/VITA: Fix building menu.c object 2024-01-07 10:45:42 -05:00
cypress
9b804c4017 NX/VITA: Add crc16 builtin 2024-01-07 10:41:52 -05:00
cypress
2545fffde3
VITA/NX: Always reset to item 0 when flipping page 2023-12-29 17:40:50 -05:00
cypress
3c15d7d6e9 NX/VITA: Add entity scalefactor 2023-12-29 17:10:12 -05:00
cypress
f5ed62245c
NX/VITA: Fix downward velocity on monster MOVETYPE_WALK being constant 2023-12-27 15:40:27 -05:00
cypress
d49f680b17
NX/VITA: Remove hardcoded Quake difficulty spawnflags 2023-12-16 12:33:03 -05:00
cypress
e7458c4824 NX/VITA: Considerable protocol bandwidth optimizations 2023-12-05 13:00:57 -05:00
cypress
bace222fce NX/VITA: Process Aim Assist Snapping without Server Assistance (coop) 2023-12-04 17:51:18 -05:00
cypress
e5a45a1b93 VITA: Prohibit exeuction of ParseClientCommand 2023-12-03 14:45:10 -05:00
cypress
c8f0ac928a NX/VITA: Properly display points in Co-Op 2023-12-02 16:58:57 -05:00
cypress
00585ad599 NX/VITA: Add Warehouse and Warehouse (Classic) to menus 2023-12-01 01:42:19 -05:00
cypress
b77b49e4b8
Merge pull request #42 from tyleryoung88/main 2023-11-30 14:30:25 -05:00
cypress
466a375729
NX/VITA: Don't spatialize sounds with no attenuation 2023-11-30 12:30:48 -05:00
cypress
8461381b9b
NX/VITA: Add missing MP5K and Springfield Pack-A-Punch Definition 2023-11-29 11:43:04 -05:00
cypress
99d258e5b3 NX/VITA: Support displaying Double-Tap 1.0 icon 2023-11-28 11:53:36 -05:00
cypress
be6377e9cf NX/VITA: Faster skybox, horizon fog blending 2023-11-28 10:59:27 -05:00
Tyler Young
cec19cc060 NX/VITA: Stop allowing player to look around while paused 2023-11-26 21:09:18 -05:00
Ian
670ed877a1 Merge branch 'main' of https://github.com/nzp-team/quakespasm into main 2023-11-22 18:25:40 -05:00
cypress
e71195feef
NX: Don't expose Exit button on menu 2023-11-22 16:52:13 -05:00
cypress
b1ebe2859f NX/VITA: Draw character name on match start 2023-11-21 22:35:01 -05:00
Ian
e9f3139f0e NX/VITA: Pathfinding performance improvement 2023-11-18 09:22:10 -05:00
Ian
0ed6300efb NX/VITA: Micro-optimizations 2023-11-18 09:01:49 -05:00
cypress
46e1838d96 VITA/NX: Fix Weapon_Name_Touch not being sent to client 2023-11-15 19:58:08 -05:00
cypress
80f88c7c02 NX: Fix SDL Window Initialization 2023-11-14 17:04:33 -05:00
cypress
2108d718d4 NX/VITA: Fix networking progs with multiple clients 2023-11-12 19:53:02 -05:00
cypress
01993b3e0d
NX/VITA: More intelligent strtrim 2023-11-06 10:49:46 -05:00
cypress
377fafa815
NX/VITA: Fix Viewmodel FOV not applying to viewent2 2023-11-05 09:59:47 -05:00