mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Fix compiler errors
The truncation handling in this one spot is okay, but the compiler isn't smart enough for it. I'm leaving it as a warning because I'd like to make a dedicated function for handling snprintf truncation in the future.
This commit is contained in:
		
							parent
							
								
									9ec9c639dd
								
							
						
					
					
						commit
						d8967112c6
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -222,6 +222,7 @@ endif
 | 
			
		|||
ifdef GCC71
 | 
			
		||||
 WFLAGS+=-Wno-error=implicit-fallthrough
 | 
			
		||||
 WFLAGS+=-Wno-implicit-fallthrough
 | 
			
		||||
 WFLAGS+=-Wno-error=format-truncation
 | 
			
		||||
endif
 | 
			
		||||
ifdef GCC80
 | 
			
		||||
 WFLAGS+=-Wno-error=format-overflow
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8386,13 +8386,13 @@ void A_SPBChase(mobj_t *actor)
 | 
			
		|||
		if (actor->tracer && actor->tracer->health)
 | 
			
		||||
		{
 | 
			
		||||
 | 
			
		||||
			// we're tailing a player, now's a good time to regain our damage properties
 | 
			
		||||
			actor->flags &=  ~MF_NOCLIPTHING;
 | 
			
		||||
 | 
			
		||||
			fixed_t defspeed = wspeed;
 | 
			
		||||
			fixed_t range = (160*actor->tracer->scale);
 | 
			
		||||
			fixed_t cx = 0, cy =0;
 | 
			
		||||
 | 
			
		||||
			// we're tailing a player, now's a good time to regain our damage properties
 | 
			
		||||
			actor->flags &=  ~MF_NOCLIPTHING;
 | 
			
		||||
 | 
			
		||||
			// Play the intimidating gurgle
 | 
			
		||||
			if (!S_SoundPlaying(actor, actor->info->activesound))
 | 
			
		||||
				S_StartSound(actor, actor->info->activesound);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue