Skip to content

Commit

Permalink
HOPKINS: Converted essai buffers to int16 arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Oct 19, 2012
1 parent 66329a6 commit ffe4f9c
Show file tree
Hide file tree
Showing 5 changed files with 203 additions and 191 deletions.
12 changes: 6 additions & 6 deletions engines/hopkins/globals.cpp
Expand Up @@ -338,9 +338,9 @@ void Globals::clearAll() {
ZONEP[idx].field4 = 0;
}

essai0 = g_PTRNUL;
essai1 = g_PTRNUL;
essai2 = g_PTRNUL;
essai0 = (int16 *)g_PTRNUL;
essai1 = (int16 *)g_PTRNUL;
essai2 = (int16 *)g_PTRNUL;
BufLig = g_PTRNUL;
chemin = g_PTRNUL;

Expand Down Expand Up @@ -368,9 +368,9 @@ void Globals::clearAll() {
SAUVEGARDE = (Sauvegarde *)malloc(sizeof(Sauvegarde));
memset(SAUVEGARDE, 0, sizeof(Sauvegarde));

essai0 = BUFFERTAPE;
essai1 = BUFFERTAPE + 25000;
essai2 = BUFFERTAPE + 50000;
essai0 = (int16 *)BUFFERTAPE;
essai1 = (int16 *)(BUFFERTAPE + 25000);
essai2 = (int16 *)(BUFFERTAPE + 50000);
BufLig = (BUFFERTAPE + 75000);
largeur_boite = 240;
TEXTE_FORMATE = 300;
Expand Down
6 changes: 3 additions & 3 deletions engines/hopkins/globals.h
Expand Up @@ -355,9 +355,9 @@ class Globals {
byte *SPRITE_ECRAN;
Sauvegarde *SAUVEGARDE;
byte *BUFFERTAPE;
byte *essai0;
byte *essai1;
byte *essai2;
int16 *essai0;
int16 *essai1;
int16 *essai2;
byte *Bufferobjet;
int INVENTAIRE[36];
TriItem Tri[51];
Expand Down

0 comments on commit ffe4f9c

Please sign in to comment.