270 |
|
|
271 |
px::V2 Floor::process_mouseforce (Actor *a, px::V2 force) |
px::V2 Floor::process_mouseforce (Actor *a, px::V2 force) |
272 |
{ |
{ |
273 |
int iplayer = 0; |
if (a->int_attrib("player") == player::CurrentPlayer()) |
|
if (a->int_attrib("player", &iplayer) && iplayer==player::CurrentPlayer()) |
|
274 |
return mousefactor() * force; |
return mousefactor() * force; |
275 |
else |
else |
276 |
return V2(); |
return V2(); |
564 |
|
|
565 |
px::V2 process_mouseforce (Actor *a, px::V2 force) |
px::V2 process_mouseforce (Actor *a, px::V2 force) |
566 |
{ |
{ |
567 |
if (a->get_attrib("player") && player::CurrentPlayer() == 0) |
if (a->int_attrib("player") == 0 && player::CurrentPlayer() == 0) |
568 |
return mousefactor() * force; |
return mousefactor() * force; |
569 |
else |
else |
570 |
return V2(); |
return V2(); |
577 |
|
|
578 |
px::V2 process_mouseforce (Actor *a, px::V2 force) |
px::V2 process_mouseforce (Actor *a, px::V2 force) |
579 |
{ |
{ |
580 |
if (a->get_attrib("player") && player::CurrentPlayer() == 1) |
if (a->int_attrib("player") == 1 && player::CurrentPlayer() == 1) |
581 |
return mousefactor() * force; |
return mousefactor() * force; |
582 |
else |
else |
583 |
return V2(); |
return V2(); |