mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 07:29:54 +00:00
rv:: do not destroy change water into chasms (except demos that do that)
This commit is contained in:
parent
162edb85a8
commit
3410a20275
@ -18,7 +18,7 @@
|
|||||||
#include <aegis.hpp>
|
#include <aegis.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../hyper.h"
|
#include "rogueviz.h"
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
@ -44,6 +44,8 @@ int labels_value = 1;
|
|||||||
|
|
||||||
vector<boarddata> history;
|
vector<boarddata> history;
|
||||||
|
|
||||||
|
bool draw_go(cell *c, const shiftmatrix& V);
|
||||||
|
|
||||||
void init_go() {
|
void init_go() {
|
||||||
ac = currentmap->allcells();
|
ac = currentmap->allcells();
|
||||||
current.taken.resize(isize(ac), 2);
|
current.taken.resize(isize(ac), 2);
|
||||||
@ -52,6 +54,7 @@ void init_go() {
|
|||||||
current.captures[1] = 0;
|
current.captures[1] = 0;
|
||||||
for(int i=0; i<isize(ac); i++)
|
for(int i=0; i<isize(ac); i++)
|
||||||
indices[ac[i]] = i;
|
indices[ac[i]] = i;
|
||||||
|
rogueviz::addHook(hooks_drawcell, 100, draw_go);
|
||||||
}
|
}
|
||||||
|
|
||||||
void hwrite(hstream& hs, const boarddata& b) {
|
void hwrite(hstream& hs, const boarddata& b) {
|
||||||
@ -602,7 +605,6 @@ int rugArgs() {
|
|||||||
|
|
||||||
auto gobot_hook =
|
auto gobot_hook =
|
||||||
addHook(hooks_args, 100, rugArgs) +
|
addHook(hooks_args, 100, rugArgs) +
|
||||||
addHook(hooks_drawcell, 100, draw_go) +
|
|
||||||
addHook(shmup::hooks_turn, 100, [] (int t) {
|
addHook(shmup::hooks_turn, 100, [] (int t) {
|
||||||
if(shot_state == 1) {
|
if(shot_state == 1) {
|
||||||
shot::take("go-temp.png");
|
shot::take("go-temp.png");
|
||||||
|
@ -488,6 +488,7 @@ void launch() {
|
|||||||
|
|
||||||
showstartmenu = false;
|
showstartmenu = false;
|
||||||
mapeditor::drawplayer = false;
|
mapeditor::drawplayer = false;
|
||||||
|
rv::hook(hooks_drawcell, 100, draw_star);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CAP_COMMANDLINE
|
#if CAP_COMMANDLINE
|
||||||
@ -515,7 +516,6 @@ int rugArgs() {
|
|||||||
|
|
||||||
auto starbattle_hook =
|
auto starbattle_hook =
|
||||||
addHook(hooks_args, 100, rugArgs) +
|
addHook(hooks_args, 100, rugArgs) +
|
||||||
addHook(hooks_drawcell, 100, draw_star) +
|
|
||||||
addHook(mapstream::hooks_savemap, 100, [] (fhstream& f) {
|
addHook(mapstream::hooks_savemap, 100, [] (fhstream& f) {
|
||||||
f.write<int>(isize(sdata));
|
f.write<int>(isize(sdata));
|
||||||
for(auto& sd: sdata) {
|
for(auto& sd: sdata) {
|
||||||
|
Loading…
Reference in New Issue
Block a user