Some RGSS2/RGSS3 compile fixes
This commit is contained in:
		
							parent
							
								
									91aefdc17a
								
							
						
					
					
						commit
						a541cb1205
					
				
					 4 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -70,7 +70,9 @@ RB_METHOD(mriP);
 | 
			
		|||
RB_METHOD(mriDataDirectory);
 | 
			
		||||
RB_METHOD(mkxpPuts);
 | 
			
		||||
 | 
			
		||||
#ifndef RGSS3
 | 
			
		||||
RB_METHOD(_kernelCaller);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
static void mriBindingInit()
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -77,7 +77,7 @@ RB_METHOD(spriteWidth)
 | 
			
		|||
 | 
			
		||||
	Sprite *s = getPrivateData<Sprite>(self);
 | 
			
		||||
 | 
			
		||||
	int value;
 | 
			
		||||
	int value = 0;
 | 
			
		||||
	GUARD_EXC( value = s->getWidth(); )
 | 
			
		||||
 | 
			
		||||
	return rb_fix_new(value);
 | 
			
		||||
| 
						 | 
				
			
			@ -89,7 +89,7 @@ RB_METHOD(spriteHeight)
 | 
			
		|||
 | 
			
		||||
	Sprite *s = getPrivateData<Sprite>(self);
 | 
			
		||||
 | 
			
		||||
	int value;
 | 
			
		||||
	int value = 0;
 | 
			
		||||
	GUARD_EXC( value = s->getHeight(); )
 | 
			
		||||
 | 
			
		||||
	return rb_fix_new(value);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue