… | … | ||
---|---|---|---|
331 | drawn.clear (); | 331 | drawn.clear (); |
332 | } | 332 | } |
333 | 333 | ||
334 | void light::enable (view &ctx) | 334 | void light::enable (view &ctx) |
335 | { | 335 | { |
336 | lightpos->set (p - ctx.orig); | 336 | lightpos->set (p + (orig - ctx.orig)); |
337 | } | 337 | } |
338 | 338 | ||
339 | void light::disable (view &ctx) | 339 | void light::disable (view &ctx) |
340 | { | 340 | { |
341 | } | 341 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |