mirror of
https://github.com/ioquake/jedi-academy.git
synced 2024-11-22 04:11:57 +00:00
use QDECL instead of __cdecl
This commit is contained in:
parent
118f3df648
commit
0c24fcdbfb
2 changed files with 3 additions and 3 deletions
|
@ -227,11 +227,11 @@ void CG_RegisterWeapon( int weaponNum ) {
|
|||
// give ourselves the functions if we can
|
||||
if (weaponData[weaponNum].func)
|
||||
{
|
||||
weaponInfo->missileTrailFunc = (void (__cdecl *)(struct centity_s *,const struct weaponInfo_s *))weaponData[weaponNum].func;
|
||||
weaponInfo->missileTrailFunc = (void (QDECL *)(struct centity_s *,const struct weaponInfo_s *))weaponData[weaponNum].func;
|
||||
}
|
||||
if (weaponData[weaponNum].altfunc)
|
||||
{
|
||||
weaponInfo->alt_missileTrailFunc = (void (__cdecl *)(struct centity_s *,const struct weaponInfo_s *))weaponData[weaponNum].altfunc;
|
||||
weaponInfo->alt_missileTrailFunc = (void (QDECL *)(struct centity_s *,const struct weaponInfo_s *))weaponData[weaponNum].altfunc;
|
||||
}
|
||||
|
||||
switch ( weaponNum ) //extra client only stuff
|
||||
|
|
|
@ -791,7 +791,7 @@ void CTRLandScape::CalculateShaders(void)
|
|||
// Cleanup our temporary array
|
||||
delete[] shaders;
|
||||
|
||||
qsort(mSortedPatches, mSortedCount, sizeof(*mSortedPatches), (int (__cdecl *)(const void *,const void *))ComparePatchInfo);
|
||||
qsort(mSortedPatches, mSortedCount, sizeof(*mSortedPatches), (int (QDECL *)(const void *,const void *))ComparePatchInfo);
|
||||
|
||||
#endif // PRE_RELEASE_DEMO
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue