Permalink
Browse files

rebuild

  • Loading branch information...
UnknownShadow200 committed Nov 2, 2018
1 parent e04126f commit 97a0d662fde7b98f71a51dce983f7211719b406b
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/Game.c
@@ -207,11 +207,14 @@ bool Game_CanPick(BlockID block) {
}
bool Game_UpdateTexture(GfxResourceID* texId, struct Stream* src, const String* file, uint8_t* skinType) {
Bitmap bmp;
ReturnCode res = Png_Decode(&bmp, src);
Bitmap bmp;
bool success;
ReturnCode res;
res = Png_Decode(&bmp, src);
if (res) { Chat_LogError2(res, "decoding", file); }
bool success = !res && Game_ValidateBitmap(file, &bmp);
success = !res && Game_ValidateBitmap(file, &bmp);
if (success) {
Gfx_DeleteTexture(texId);
if (skinType) { *skinType = Utils_GetSkinType(&bmp); }

0 comments on commit 97a0d66

Please sign in to comment.