X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FGlobals.c;h=a73a6ffd68f3a1241dd693029cfc9985768afb05;hb=98d421667c21a07ab69dd881f1435c2f595ddd4c;hp=44affc03bb9ca1418dccc3888aadbd269e3f95fd;hpb=3ff2e8a0b5c27b99a9920bdf5ed82bc41bf40181;p=rocksndiamonds.git diff --git a/src/game_sp/Globals.c b/src/game_sp/Globals.c index 44affc03..a73a6ffd 100644 --- a/src/game_sp/Globals.c +++ b/src/game_sp/Globals.c @@ -151,7 +151,7 @@ boolean isSnappingSequence(int sequence) } } -void InitGlobals() +void InitGlobals(void) { InitPrecedingPlayfieldMemory(); @@ -166,13 +166,13 @@ void InitGlobals() bPlaying = False; menBorder = False; - /* add preceding playfield buffer (as large as preceding memory area) */ + // add preceding playfield buffer (as large as preceding memory area) PlayField16 = checked_calloc((game_sp.preceding_buffer_size + SP_MAX_PLAYFIELD_SIZE + SP_HEADER_SIZE) * sizeof(int)); PlayField16 = &PlayField16[game_sp.preceding_buffer_size]; - /* add preceding playfield buffer (as large as one playfield row) */ + // add preceding playfield buffer (as large as one playfield row) PlayField8 = checked_calloc((SP_MAX_PLAYFIELD_WIDTH + SP_MAX_PLAYFIELD_SIZE + SP_HEADER_SIZE) * sizeof(byte)); @@ -204,7 +204,7 @@ int GetStretchY(int si) return StretchWidth * (si / FieldWidth); } -void PrepareLevel() +void PrepareLevel(void) { copyInternalEngineVars_SP();