Multiplayer step B: every player order is a command (dig, build, cast, hand, orders) and the simulation runs in fixed 50 ms steps, so single player and a match take the same path
This commit is contained in:
1 parent
d6bcce3a76
commit
1ec7492189
8 files changed
+635
-101
No files matched your search
+1
-1
@@ -80,7 +80,7 @@ impl Game {
|
||||
let (w, h) = (mw() as i32, mh() as i32);
|
||||
// own ground and everything around it
|
||||
for i in 0..n {
|
||||
if self.map.t[i].owner == Owner::Player {
|
||||
if self.map.t[i].owner == self.me {
|
||||
let (x, y) = xy(i);
|
||||
for dy in -1..=1 {
|
||||
for dx in -1..=1 {
|
||||
|
||||
Reference in new issue
Block a user