Cvars: Adjust few things

- Hook is not as post, because allowing blocking change is not really that useful and this makes a context more simpler.
- Setting a min bound > max bound and reversely throw an error
- set_pcvar_bounds set cvar value on new min/max bound.
- Remove error "A cvar can't be binded with several variables", it's okay to no error such situation.
This commit is contained in:
Arkshine
2015-01-28 00:25:27 +01:00
parent 1a5e1928ec
commit e4a7e67783
4 changed files with 79 additions and 58 deletions

View File

@ -34,7 +34,7 @@
#if defined(__linux__) || defined(__APPLE__)
#include <sys/mman.h>
#include <unistd.h>
#include <unistd.h>
#ifndef PAGE_SIZE
#define PAGE_SIZE 4096
#endif