ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/main.C
(Generate patch)

Comparing deliantra/server/server/main.C (file contents):
Revision 1.177 by root, Thu Nov 17 23:28:05 2016 UTC vs.
Revision 1.178 by root, Sat Sep 16 22:17:42 2017 UTC

104 } 104 }
105 105
106 if (i >= 0) 106 if (i >= 0)
107 { 107 {
108 maptile *m = newmap; 108 maptile *m = newmap;
109 sint16 nx = x + freearr_x[i]; 109 sint16 nx = x + DIRX (i);
110 sint16 ny = y + freearr_y[i]; 110 sint16 ny = y + DIRY (i);
111 111
112 if (xy_normalise (m, nx, ny)) 112 if (xy_normalise (m, nx, ny))
113 { 113 {
114 newmap = m; 114 newmap = m;
115 x = nx; 115 x = nx;
151 151
152 if (i < 0) 152 if (i < 0)
153 golem->drop_and_destroy (); 153 golem->drop_and_destroy ();
154 else 154 else
155 { 155 {
156 newmap->insert (golem, x + freearr_x[i], y + freearr_y[i]); 156 newmap->insert (golem, x + DIRX (i), y + DIRY (i));
157 golem->direction = find_dir_2 (golem->x - x, golem->y - y); 157 golem->direction = find_dir_2 (golem->x - x, golem->y - y);
158 } 158 }
159 } 159 }
160 } 160 }
161 161

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines