mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Merge branch 'no-crushma-thanks' into 'master'
Monkey-patch likely cause of Eggshrine crash See merge request kart-krew-dev/ring-racers-internal!2805
This commit is contained in:
		
						commit
						ec70f62f36
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -1237,13 +1237,14 @@ static void P_AddBrokenPrison(mobj_t *target, mobj_t *inflictor, mobj_t *source) | |||
| 	} | ||||
| 
 | ||||
| 	// If you CAN recieve points, get them!
 | ||||
| 	if ((gametyperules & GTR_POINTLIMIT) && (source && source->player)) | ||||
| 	if ((gametyperules & GTR_POINTLIMIT) | ||||
| 		&& (source && !P_MobjWasRemoved(source) && source->player)) | ||||
| 	{ | ||||
| 		K_GivePointsToPlayer(source->player, NULL, 1); | ||||
| 	} | ||||
| 
 | ||||
| 	targetdamaging_t targetdamaging = UFOD_GENERIC; | ||||
| 	if (P_MobjWasRemoved(inflictor) == true) | ||||
| 	if (!inflictor || P_MobjWasRemoved(inflictor) == true) | ||||
| 		; | ||||
| 	else switch (inflictor->type) | ||||
| 	{ | ||||
|  | @ -1342,6 +1343,10 @@ static void P_AddBrokenPrison(mobj_t *target, mobj_t *inflictor, mobj_t *source) | |||
| 			secretextratime = TICRATE/2; | ||||
| 		} | ||||
| 
 | ||||
| 		// Everything below dependent on our coords
 | ||||
| 		if (!target || P_MobjWasRemoved(target)) | ||||
| 			return; | ||||
| 
 | ||||
| 		// Prison Egg challenge drops (CDs, etc)
 | ||||
| #ifdef DEVELOP | ||||
| 		extern consvar_t cv_debugprisoncd; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Eidolon
						Eidolon