mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-22 01:52:43 +00:00
Make radius for collecting red coin packets smaller
This commit is contained in:
parent
a75113c665
commit
7869473e95
1 changed files with 2 additions and 1 deletions
|
|
@ -96,7 +96,8 @@ void network_receive_collect_coin(struct Packet* p) {
|
|||
if (behavior == NULL) { goto SANITY_CHECK_COINS; }
|
||||
|
||||
// find the coin
|
||||
struct Object* coin = find_nearest_coin(behavior, pos, coinValue, 1000);
|
||||
float minDist = (behavior == bhvRedCoin) ? 200 : 1000;
|
||||
struct Object* coin = find_nearest_coin(behavior, pos, coinValue, minDist);
|
||||
if (coin == NULL) { goto SANITY_CHECK_COINS; }
|
||||
|
||||
// destroy coin
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue