Bring up Get Items dialog when retrieving stored items from the next scenario, so that you can pick and choose which items to keep.

Also some bugfixes and stuff:
- Fix specials sometimes being run twice in a row
- Holding Control while clicking Create also makes a debug party (as an alternative to holding Command)
- Fix "How Many" popup being non-dismissible
- Reduce loading time spent on checking for missing opcodes
This commit is contained in:
2014-12-08 02:37:15 -05:00
parent 5249c6eef7
commit 34be9a0233
7 changed files with 80 additions and 69 deletions

View File

@@ -176,7 +176,11 @@ struct initer {
("start-shop", eSpecType::OUT_STORE)
;
// A check for missing types.
using underlying = std::underlying_type<eSpecType>::type;
// There's really no need to check all the way to the max of the underlying type.
// It's unlikely we'd go above 255, so unsigned char would be fine, but just in case,
// let's use unsigned short.
// Could change the actual enum's underlying type instead though?
using underlying = signed short;//std::underlying_type<eSpecType>::type;
struct node_less : std::binary_function<eSpecType, eSpecType, bool> {
bool operator()(const eSpecType& x, const eSpecType& y) const {return underlying(x) < underlying(y);}
};