many assorted syntax errors
This commit is contained in:
		| @@ -691,7 +691,7 @@ spewy = frownie.new{ | ||||
| } | ||||
| mknew(spewy, function(ship) | ||||
|  ship.main_gun=ship.main_gun or protron_gun.new{enemy=true} | ||||
| end}) | ||||
| end) | ||||
|  | ||||
| chasey = ship_m.new{ | ||||
|  sprite = 5, | ||||
| @@ -872,7 +872,7 @@ function load_level(levelfile) | ||||
|    currentlevel[row[1]]=row | ||||
|   end | ||||
|  end | ||||
|  assert found_eol | ||||
|  assert(found_eol) | ||||
| end | ||||
|  | ||||
| function level_frame() | ||||
| @@ -889,7 +889,7 @@ function level_frame() | ||||
|     while cbs do | ||||
|      assert(cbs[1] == distance) | ||||
|      local f = _ENV[cbs[2]] | ||||
|      assert(type(f) == "function", cbs[2].." at "..distance..." is not a function") | ||||
|      assert(type(f) == "function", cbs[2].." at "..distance.." is not a function") | ||||
|      f(unpack(cbs, 3)) | ||||
|      cbs=cbs.next | ||||
|     end | ||||
| @@ -914,7 +914,7 @@ function spawn_blocking_rnd_x(typ) | ||||
|    freeze -= self.ice | ||||
|    self.ice = 0 | ||||
|    self:orig_die() | ||||
|   end | ||||
|   end, | ||||
|  } | ||||
|  eships:push_back(s) | ||||
|  return s | ||||
| @@ -1020,14 +1020,14 @@ function spawn_rnd(typ, blocking, goodie,altspr) | ||||
|  freeze += blocking | ||||
|  s = typ.new{ | ||||
|   x = rnd(104), | ||||
|   y = -(typ.size * 8 - 1) | ||||
|   ice=blocking | ||||
|   y = -(typ.size * 8 - 1), | ||||
|   ice=blocking, | ||||
|   die=function(self) | ||||
|    freeze -= self.ice | ||||
|    self.ice=0 | ||||
|    typ.die(self) | ||||
|    spawn_goodie(goodie, self.x, self.y, self.size) | ||||
|   end | ||||
|   end, | ||||
|  } | ||||
|  if (altspr) s.spr = altspr | ||||
|  eships:push_back(s) | ||||
| @@ -1043,7 +1043,7 @@ function spawn_goodie(goodie_name, x, y, sz) | ||||
| end | ||||
|  | ||||
| function multi(times, interval, fnm, ...) | ||||
|  local f,irm = _ENV[fnm],interval | ||||
|  local f,irm,vargs = _ENV[fnm],interval,pack(...) | ||||
|  assert(type(f) == "function", fnm.." not a function") | ||||
|  fnm(...) | ||||
|  events:push_back{move=function() | ||||
| @@ -1051,7 +1051,7 @@ function multi(times, interval, fnm, ...) | ||||
|   if irm <= 0 then | ||||
|    irm=interval | ||||
|    times-=1 | ||||
|    fnm(...) | ||||
|    fnm(unpack(vargs)) | ||||
|    return times <= 1 | ||||
|   end | ||||
|  end} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user