When initializing ai object correctly initialize Ai_local_info to prevent glitches like random submodel angles

This commit is contained in:
zicodxx 2011-07-02 22:48:10 +02:00
parent 2da37871b8
commit 53fca9dd44
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20110702
--------
main/ai.c: When initializing ai object correctly initialize Ai_local_info to prevent glitches like random submodel angles
20110701
--------
d1x.ini, main/inferno.c, main/net_udp.h, misc/args.c: Made formatting for help text more consistent and prettier; Somewhat changed the code for help text so we can use variables in the help text. For example: If we change MAXIMUM_FPS, it will automatically be displayed in the help text without manual editing needed

View file

@ -310,6 +310,8 @@ void init_ai_object(int objnum, int behavior, int hide_segment)
ai_static *aip = &objp->ctype.ai_info;
ai_local *ailp = &Ai_local_info[objnum];
memset(ailp, 0, sizeof(ai_local));
#ifdef DEST_SAT
if (!(Game_mode & GM_MULTI) && Robot_info[objp->id].boss_flag) {
if (Current_level_num != Last_level) {