mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'monitor-fixup' into 'master'
Fix inaccurate monitor previews See merge request kart-krew-dev/ring-racers-internal!2662
This commit is contained in:
commit
b3547e0ea0
1 changed files with 4 additions and 4 deletions
|
|
@ -325,10 +325,10 @@ kill_monitor_part (mobj_t *part)
|
||||||
static inline UINT32
|
static inline UINT32
|
||||||
restore_item_rng (UINT32 seed)
|
restore_item_rng (UINT32 seed)
|
||||||
{
|
{
|
||||||
const UINT32 oldseed = P_GetRandSeed(PR_ITEM_ROULETTE);
|
const UINT32 oldseed = P_GetRandSeed(PR_ITEM_SPAWNER);
|
||||||
|
|
||||||
P_SetRandSeedNet(PR_ITEM_ROULETTE,
|
P_SetRandSeedNet(PR_ITEM_SPAWNER,
|
||||||
P_GetInitSeed(PR_ITEM_ROULETTE), seed);
|
P_GetInitSeed(PR_ITEM_SPAWNER), seed);
|
||||||
|
|
||||||
return oldseed;
|
return oldseed;
|
||||||
}
|
}
|
||||||
|
|
@ -478,7 +478,7 @@ Obj_MonitorSpawnParts (mobj_t *monitor)
|
||||||
P_SetScale(monitor, (monitor->destscale *= 2));
|
P_SetScale(monitor, (monitor->destscale *= 2));
|
||||||
|
|
||||||
monitor_itemcount(monitor) = 0;
|
monitor_itemcount(monitor) = 0;
|
||||||
monitor_rngseed(monitor) = P_GetRandSeed(PR_ITEM_ROULETTE);
|
monitor_rngseed(monitor) = P_GetRandSeed(PR_ITEM_SPAWNER);
|
||||||
monitor_spawntic(monitor) = leveltime;
|
monitor_spawntic(monitor) = leveltime;
|
||||||
monitor_emerald(monitor) = 0;
|
monitor_emerald(monitor) = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue