trouble with pickDroidStructLocation

For AI and campaign script related discussions and questions
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: trouble with pickDroidStructLocation

Post by NoQ »

Probably. Anyway, adding 1 works perfectly unless borg factories are involved (and when they are involved, some borg factories are still built correctly, while others are shifted by 1/2 tiles left or right) (even though regular factories also have odd dimensions).

Also, i'm already talking about javascript engine (having some fun experimenting with semperfi-js)
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: trouble with pickDroidStructLocation

Post by Per »

Ok, good catch. I think I fixed this now.
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: trouble with pickDroidStructLocation

Post by NoQ »

Thanks!! Will test (:
Upd: yeah, actually fixed (:
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: trouble with pickDroidStructLocation

Post by NoQ »

There seems to be one more thing. Even though construction happens correctly, building previews are still shifted in some cases:
wz2100-20120116_222320-Sk-Rush2.jpg
wz2100-20120116_222325-Sk-Rush2.jpg
(these screenshots also feature #3050)
(seems to apply only to javascript building order calls, not to wzscript ones)
Post Reply