mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 13:21:10 +00:00
Merge remote-tracking branch 'remotes/upstream/thunder-fixes' into test-many-mrs
This commit is contained in:
commit
20c0db1f22
2 changed files with 6 additions and 1 deletions
|
@ -141,6 +141,9 @@ boolean P_CanPickupItem(player_t *player, UINT8 weapon)
|
||||||
|| (weapon != 3 && player->kartstuff[k_itemamount])
|
|| (weapon != 3 && player->kartstuff[k_itemamount])
|
||||||
|| player->kartstuff[k_itemheld])
|
|| player->kartstuff[k_itemheld])
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (weapon == 3 && player->kartstuff[k_itemtype] == KITEM_THUNDERSHIELD)
|
||||||
|
return false; // No stacking thunder shields!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7654,12 +7654,14 @@ static void P_NukeAllPlayers(player_t *player)
|
||||||
//
|
//
|
||||||
void P_NukeEnemies(mobj_t *inflictor, mobj_t *source, fixed_t radius)
|
void P_NukeEnemies(mobj_t *inflictor, mobj_t *source, fixed_t radius)
|
||||||
{
|
{
|
||||||
const fixed_t ns = 60 << FRACBITS;
|
const fixed_t ns = 60 * mapobjectscale;
|
||||||
mobj_t *mo;
|
mobj_t *mo;
|
||||||
angle_t fa;
|
angle_t fa;
|
||||||
thinker_t *think;
|
thinker_t *think;
|
||||||
INT32 i;
|
INT32 i;
|
||||||
|
|
||||||
|
radius = FixedMul(radius, mapobjectscale);
|
||||||
|
|
||||||
for (i = 0; i < 16; i++)
|
for (i = 0; i < 16; i++)
|
||||||
{
|
{
|
||||||
fa = (i*(FINEANGLES/16));
|
fa = (i*(FINEANGLES/16));
|
||||||
|
|
Loading…
Reference in a new issue