Fix edge case
This commit is contained in:
@@ -312,9 +312,12 @@ over:
|
|||||||
after = FALSE;
|
after = FALSE;
|
||||||
msg(rs,"version %s. (mctesq was here)", release);
|
msg(rs,"version %s. (mctesq was here)", release);
|
||||||
when 'S':
|
when 'S':
|
||||||
msg(rs,"Saving is disabled, use bailout rpc");
|
|
||||||
after = FALSE;
|
after = FALSE;
|
||||||
//save_game(rs);
|
#ifdef STANDALONE
|
||||||
|
save_game(rs);
|
||||||
|
#else
|
||||||
|
msg(rs,"Saving is disabled, use bailout rpc");
|
||||||
|
#endif
|
||||||
when '.': ; /* Rest command */
|
when '.': ; /* Rest command */
|
||||||
when ' ': after = FALSE; /* "Legal" illegal command */
|
when ' ': after = FALSE; /* "Legal" illegal command */
|
||||||
when '^':
|
when '^':
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#define SMALLVAL 0.000000000000001
|
#define SMALLVAL 0.000000000000001
|
||||||
#define SATOSHIDEN ((uint64_t)100000000L)
|
#define SATOSHIDEN ((uint64_t)100000000L)
|
||||||
|
|||||||
@@ -17,6 +17,16 @@
|
|||||||
|
|
||||||
#undef lines
|
#undef lines
|
||||||
|
|
||||||
|
#ifdef LINES
|
||||||
|
#undef LINES
|
||||||
|
#endif
|
||||||
|
#ifdef COLS
|
||||||
|
#undef COLS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define LINES 24
|
||||||
|
#define COLS 80
|
||||||
|
|
||||||
#define NOOP(x) (x += 0)
|
#define NOOP(x) (x += 0)
|
||||||
#define CCHAR(x) ( (char) (x & A_CHARTEXT) )
|
#define CCHAR(x) ( (char) (x & A_CHARTEXT) )
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -22,6 +22,23 @@
|
|||||||
#define ROGUE_MAXPLAYERS 64 // need to send unused fees back to globalCC address to prevent leeching
|
#define ROGUE_MAXPLAYERS 64 // need to send unused fees back to globalCC address to prevent leeching
|
||||||
#define ROGUE_MAXKEYSTROKESGAP 60
|
#define ROGUE_MAXKEYSTROKESGAP 60
|
||||||
#define ROGUE_MAXITERATIONS 777
|
#define ROGUE_MAXITERATIONS 777
|
||||||
|
|
||||||
|
#define MAXPACK 23
|
||||||
|
struct rogue_packitem
|
||||||
|
{
|
||||||
|
int32_t type,launch,count,which,hplus,dplus,arm,flags,group;
|
||||||
|
char damage[8],hurldmg[8];
|
||||||
|
};
|
||||||
|
struct rogue_player
|
||||||
|
{
|
||||||
|
int32_t gold,hitpoints,strength,level,experience,packsize,dungeonlevel,pad;
|
||||||
|
struct rogue_packitem roguepack[MAXPACK];
|
||||||
|
};
|
||||||
|
int32_t rogue_replay2(uint8_t *newdata,uint64_t seed,char *keystrokes,int32_t num,struct rogue_player *player);
|
||||||
|
#define ROGUE_DECLARED_PACK
|
||||||
|
void rogue_packitemstr(char *packitemstr,struct rogue_packitem *item);
|
||||||
|
|
||||||
|
|
||||||
std::string Rogue_pname = "fred";
|
std::string Rogue_pname = "fred";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -133,20 +150,6 @@ std::string Rogue_pname = "fred";
|
|||||||
// ./c cclib bailout 17 \"[%226d3243c6e5ab383898b28a87e01f6c00b5bdd9687020f17f5caacc8a61febd19%22]\"
|
// ./c cclib bailout 17 \"[%226d3243c6e5ab383898b28a87e01f6c00b5bdd9687020f17f5caacc8a61febd19%22]\"
|
||||||
// ./komodo-cli -ac_name=ROGUE cclib register 17 \"[%22a898f4ceef7647ba113b9f3c24ef045f5d134935a3b09bdd1a997b9d474f4c1b%22,%22f11d0cb4e2e4c21f029a1146f8e5926f11456885b7ab7d665096f5efedec8ea0%22]\"
|
// ./komodo-cli -ac_name=ROGUE cclib register 17 \"[%22a898f4ceef7647ba113b9f3c24ef045f5d134935a3b09bdd1a997b9d474f4c1b%22,%22f11d0cb4e2e4c21f029a1146f8e5926f11456885b7ab7d665096f5efedec8ea0%22]\"
|
||||||
|
|
||||||
#define MAXPACK 23
|
|
||||||
struct rogue_packitem
|
|
||||||
{
|
|
||||||
int32_t type,launch,count,which,hplus,dplus,arm,flags,group;
|
|
||||||
char damage[8],hurldmg[8];
|
|
||||||
};
|
|
||||||
struct rogue_player
|
|
||||||
{
|
|
||||||
int32_t gold,hitpoints,strength,level,experience,packsize,dungeonlevel,pad;
|
|
||||||
struct rogue_packitem roguepack[MAXPACK];
|
|
||||||
};
|
|
||||||
int32_t rogue_replay2(uint8_t *newdata,uint64_t seed,char *keystrokes,int32_t num,struct rogue_player *player);
|
|
||||||
#define ROGUE_DECLARED_PACK
|
|
||||||
void rogue_packitemstr(char *packitemstr,struct rogue_packitem *item);
|
|
||||||
|
|
||||||
CScript rogue_newgameopret(int64_t buyin,int32_t maxplayers)
|
CScript rogue_newgameopret(int64_t buyin,int32_t maxplayers)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user