mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-09 11:40:46 -05:00
Update ex 047 comment and patch
This commit is contained in:
parent
392a3ca9c6
commit
c3c610acf0
2 changed files with 4 additions and 4 deletions
|
@ -88,7 +88,7 @@ pub fn main() void {
|
||||||
// Loop through every alien...
|
// Loop through every alien...
|
||||||
for (aliens) |*alien| {
|
for (aliens) |*alien| {
|
||||||
|
|
||||||
// *** Zap the Alien Here! ***
|
// *** Zap the alien with the heat ray here! ***
|
||||||
???.zap(???);
|
???.zap(???);
|
||||||
|
|
||||||
// If the alien's health is still above 0, it's still alive.
|
// If the alien's health is still above 0, it's still alive.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
87c87
|
92c92
|
||||||
< ???.zap(heat_ray_strength);
|
< ???.zap(???);
|
||||||
---
|
---
|
||||||
> alien.zap(heat_ray_strength);
|
> heat_ray.zap(alien);
|
||||||
|
|
Loading…
Reference in a new issue