mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-03 09:17:02 +00:00
fixed turn-based multiplayer
This commit is contained in:
parent
9fe2622043
commit
2f9419615d
@ -3998,8 +3998,8 @@ EX void drawMarkers() {
|
||||
queuecircleat(lmouseover, .8, darkena(lmouseover->cpdist > 1 ? 0x00FFFF : 0xFF0000, 0, 0xFF));
|
||||
}
|
||||
|
||||
if(pcm.mip.t && vid.drawmousecircle && ok && DEFAULTCONTROL && MOBON && WDIM == 2) {
|
||||
queuecircleat(pcm.mip.t, .6, darkena(0xFFD500, 0, 0xFF));
|
||||
if(global_pushto && vid.drawmousecircle && ok && DEFAULTCONTROL && MOBON && WDIM == 2) {
|
||||
queuecircleat(global_pushto, .6, darkena(0xFFD500, 0, 0xFF));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -224,12 +224,15 @@ struct pcmove {
|
||||
};
|
||||
#endif
|
||||
|
||||
EX pcmove pcm;
|
||||
EX cell *global_pushto;
|
||||
|
||||
EX bool movepcto(int d, int subdir IS(1), bool checkonly IS(false)) {
|
||||
pcmove pcm;
|
||||
pcm.checkonly = checkonly;
|
||||
pcm.d = d; pcm.subdir = subdir;
|
||||
return pcm.movepcto();
|
||||
auto b = pcm.movepcto();
|
||||
global_pushto = pcm.mip.t;
|
||||
return b;
|
||||
}
|
||||
|
||||
bool pcmove::movepcto() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user