replaced set_asking with increment_asking

This commit is contained in:
Václav Šmejkal 2024-09-01 20:51:52 +02:00
parent 357f73ae69
commit e94a401308
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 5 additions and 5 deletions

View File

@ -61,7 +61,7 @@ extern "C" {
#define WHY2_CHAT_CODE_SSQC WHY2_CHAT_CODE_SERVER_SIDE_QUIT_COMMUNICATION
//FUNCTIONS
void __why2_set_asking_password(unsigned char asking_password); //IF HASH SHOULD BE SENT INSTEAD OF NORMAL MESSAGE
void __why2_increment_asking_password(unsigned char asking_password); //IF HASH SHOULD BE SENT INSTEAD OF NORMAL MESSAGE
void __why2_reset_asking_password();
#ifdef __cplusplus

View File

@ -18,14 +18,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <why2/chat/flags.h>
unsigned char asking_password_flag = 0;
unsigned char asking_password = 0;
void __why2_set_asking_password(unsigned char asking_password)
void __why2_increment_asking_password()
{
asking_password_flag = asking_password;
asking_password++;
}
void __why2_reset_asking_password()
{
asking_password_flag = 0;
asking_password = 0;
}