correctly paused input for game when chatting or in menu

This commit is contained in:
Magnus Auvinen 2008-10-20 22:53:42 +00:00
parent e76e0e6f7e
commit 9f7a6a04b0

View file

@ -95,8 +95,10 @@ int CONTROLS::snapinput(int *data)
last_data.direction = 0; last_data.direction = 0;
last_data.hook = 0; last_data.hook = 0;
last_data.jump = 0; last_data.jump = 0;
input_data = last_data; input_data = last_data;
input_direction_left = 0;
input_direction_right = 0;
mem_copy(data, &input_data, sizeof(input_data)); mem_copy(data, &input_data, sizeof(input_data));
return sizeof(input_data); return sizeof(input_data);