1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 22:39:53 +00:00

updated mobile parts of init.cpp

This commit is contained in:
Zeno Rogue 2018-08-25 00:01:46 +02:00
parent d66207f5cc
commit c10985dd4a
2 changed files with 4 additions and 7 deletions

View File

@ -58,9 +58,6 @@ void gdpush(int t);
void shareScore(MOBPAR_FORMAL); void shareScore(MOBPAR_FORMAL);
const char *scorefile, *conffile;
std::string levelfile, picfile;
bool settingsChanged = false; bool settingsChanged = false;
struct transmatrix getOrientation(); struct transmatrix getOrientation();

View File

@ -150,9 +150,9 @@ void handleclick(MOBPAR_FORMAL) {
else if(statkeys && getcstat == 't') { else if(statkeys && getcstat == 't') {
if(playermoved && items[itStrongWind]) { if(playermoved && items[itStrongWind]) {
cell *c = whirlwind::jumpDestination(cwt.at); cell *c = whirlwind::jumpDestination(cwt.at);
if(c) centerover.c = c, centerover.spin = 0; if(c) centerover.at = c, centerover.spin = 0;
} }
targetRangedOrb(centerover.c, roKeyboard); targetRangedOrb(centerover.at, roKeyboard);
getcstat = 0; getcstat = 0;
} }
@ -172,7 +172,7 @@ void handleclick(MOBPAR_FORMAL) {
ors::reset(); ors::reset();
centerpc(INF); centerpc(INF);
View = Id; View = Id;
viewctr.h = cwt.at->master; viewctr.at = cwt.at->master;
} }
andmode = 11; andmode = 11;
} }
@ -207,7 +207,7 @@ void handleclick(MOBPAR_FORMAL) {
if(!playerfound) { if(!playerfound) {
centerpc(INF); centerpc(INF);
View = Id; View = Id;
viewctr.h = cwt.at->master; viewctr.at = cwt.at->master;
} }
playermoved = true; playermoved = true;
} }