Page MenuHomePhabricator (Chris)

Fix-for-Earth-Graphic-crash
No OneTemporary

Authored By
Unknown
Size
610 B
Referenced Files
None
Subscribers
None

Fix-for-Earth-Graphic-crash

Description: Fix for Earth Graphic crash
Change filename String for bitmap loader re: EARTH.png.
This prevents crash on certain conditions like Game Over.
Forwarded: not-needed
--- darthinvaders-1.0.orig/Test.cpp
+++ darthinvaders-1.0/Test.cpp
@@ -157,7 +157,7 @@ int main(void)
emperor1 = al_load_sample("Sounds/Emperor1.ogg");
emperor2 = al_load_sample("Sounds/Emperor2.ogg");
emperor3 = al_load_sample("Sounds/Emperor3.ogg");
- State3 = al_load_bitmap("Pictures/EARTH.png");
+ State3 = al_load_bitmap("Pictures/Earth.png");
State4 = al_load_bitmap("Pictures/DeathStar.png");
//Load Pictures

File Metadata

Mime Type
text/x-diff
Expires
Sat, Nov 14, 8:13 PM (23 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
135678
Default Alt Text
Fix-for-Earth-Graphic-crash (610 B)

Event Timeline