Fixed last joy vars initial state.
This commit is contained in:
@@ -513,6 +513,8 @@ Create and record ZMV
|
||||
void zmv_create(char *filename)
|
||||
{
|
||||
memset(&zmv_vars, 0, sizeof(zmv_vars));
|
||||
memset(&zmv_vars.last_joy_state, ~0, sizeof(zmv_vars.last_joy_state));
|
||||
|
||||
if ((zmv_vars.fp = fopen(filename,"wb")))
|
||||
{
|
||||
strncpy(zmv_vars.header.magic, "ZMV", 3);
|
||||
@@ -644,6 +646,7 @@ struct
|
||||
bool zmv_open(char *filename)
|
||||
{
|
||||
memset(&zmv_vars, 0, sizeof(zmv_vars));
|
||||
memset(&zmv_vars.last_joy_state, ~0, sizeof(zmv_vars.last_joy_state));
|
||||
memset(&zmv_open_vars, 0, sizeof(zmv_open_vars));
|
||||
|
||||
zmv_vars.fp = fopen(filename,"r+b");
|
||||
|
||||
Reference in New Issue
Block a user