mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Corrected placeholders for obsolete opcodes
Minor edit to documents. Updated version number.
This commit is contained in:
@@ -325,7 +325,7 @@ _^ - These functions require AllowUnsafeScripting to be enabled in ddraw.ini_
|
||||
|
||||
0x824b - `int tile_under_cursor()`\
|
||||
0x824c - `int gdialog_get_barter_mod()`\
|
||||
0x824d - `void set_inven_ap_cost()`
|
||||
0x824d - `void set_inven_ap_cost(int cost)`
|
||||
|
||||
0x825c - `void reg_anim_combat_check(int enable)`\
|
||||
0x825a - `void reg_anim_destroy(object object)`\
|
||||
|
||||
@@ -325,7 +325,7 @@
|
||||
|
||||
0x824b - int tile_under_cursor()
|
||||
0x824c - int gdialog_get_barter_mod()
|
||||
0x824d - void set_inven_ap_cost()
|
||||
0x824d - void set_inven_ap_cost(int cost)
|
||||
|
||||
0x825c - void reg_anim_combat_check(int enable)
|
||||
0x825a - void reg_anim_destroy(object object)
|
||||
|
||||
@@ -101,6 +101,15 @@ void __declspec(naked) op_eax_available() {
|
||||
}
|
||||
}
|
||||
|
||||
void __declspec(naked) op_set_eax_environment() {
|
||||
__asm {
|
||||
_GET_ARG_INT(end);
|
||||
xor eax, eax; // EAX support has been removed since 2.1a
|
||||
end:
|
||||
retn;
|
||||
}
|
||||
}
|
||||
|
||||
static int ParseIniSetting(const char* iniString, const char* &key, char section[], char file[]) {
|
||||
key = strstr(iniString, "|");
|
||||
if (!key) return -1;
|
||||
@@ -229,7 +238,10 @@ void op_set_palette(OpcodeContext& ctx) {
|
||||
|
||||
//numbers subgame functions
|
||||
void __declspec(naked) op_nb_create_char() {
|
||||
__asm retn;
|
||||
__asm {
|
||||
xor edx, edx;
|
||||
_J_RET_VAL_TYPE(VAR_TYPE_INT);
|
||||
}
|
||||
}
|
||||
|
||||
void __declspec(naked) op_hero_select_win() { // for opening the appearance selection window
|
||||
|
||||
@@ -47,6 +47,8 @@ void op_get_year(OpcodeContext&);
|
||||
|
||||
void __declspec() op_eax_available();
|
||||
|
||||
void __declspec() op_set_eax_environment();
|
||||
|
||||
void op_get_ini_setting(OpcodeContext&);
|
||||
|
||||
void op_get_ini_string(OpcodeContext&);
|
||||
|
||||
@@ -337,7 +337,7 @@ void Opcodes::InitNew() {
|
||||
opcodes[0x1a1] = op_set_hit_chance_max;
|
||||
opcodes[0x1a2] = op_set_skill_max;
|
||||
opcodes[0x1a3] = op_eax_available;
|
||||
//opcodes[0x1a4] = op_set_eax_environment;
|
||||
opcodes[0x1a4] = op_set_eax_environment;
|
||||
opcodes[0x1a6] = op_get_viewport_x;
|
||||
opcodes[0x1a7] = op_get_viewport_y;
|
||||
opcodes[0x1a8] = op_set_viewport_x;
|
||||
|
||||
+2
-2
@@ -25,6 +25,6 @@
|
||||
#define VERSION_MAJOR 3
|
||||
#define VERSION_MINOR 8
|
||||
#define VERSION_BUILD 34
|
||||
#define VERSION_REV 0
|
||||
#define VERSION_REV 1
|
||||
|
||||
#define VERSION_STRING "3.8.34"
|
||||
#define VERSION_STRING "3.8.34.1"
|
||||
|
||||
Reference in New Issue
Block a user