Added move finding/selection
This commit is contained in:
+2
-2
@@ -19,8 +19,8 @@ int Sprite::get(Team team, Type type, Visibility vis, SDL_Surface* dest_surface)
|
||||
return -1;
|
||||
}
|
||||
|
||||
SDL_Rect dest_rect{0,0,45,45};
|
||||
SDL_Rect src_rect{type*45,team*45+vis*90,45,45};
|
||||
SDL_Rect dest_rect{0,0,SPRITE_SIZE,SPRITE_SIZE};
|
||||
SDL_Rect src_rect{type*SPRITE_SIZE,team*SPRITE_SIZE+vis*2*SPRITE_SIZE,SPRITE_SIZE,SPRITE_SIZE};
|
||||
SDL_BlitSurface(sheet, &src_rect, dest_surface, &dest_rect);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user