equal
deleted
inserted
replaced
5419 |
5419 |
5420 if (_preload_sprite == NULL) { |
5420 if (_preload_sprite == NULL) { |
5421 /* No preloaded sprite to work with; allocate and read the |
5421 /* No preloaded sprite to work with; allocate and read the |
5422 * pseudo sprite content. */ |
5422 * pseudo sprite content. */ |
5423 buf = MallocT<byte>(num); |
5423 buf = MallocT<byte>(num); |
5424 if (buf == NULL) error("DecodeSpecialSprite: Could not allocate memory"); |
|
5425 FioReadBlock(buf, num); |
5424 FioReadBlock(buf, num); |
5426 } else { |
5425 } else { |
5427 /* Use the preloaded sprite data. */ |
5426 /* Use the preloaded sprite data. */ |
5428 buf = _preload_sprite; |
5427 buf = _preload_sprite; |
5429 _preload_sprite = NULL; |
5428 _preload_sprite = NULL; |